Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle build fail after upgrading to 4.3.12 #1586

Open
micjaesc opened this issue Jul 28, 2022 · 2 comments
Open

Gradle build fail after upgrading to 4.3.12 #1586

micjaesc opened this issue Jul 28, 2022 · 2 comments
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@micjaesc
Copy link

Hi,
After modernizing library 'au.com.dius.pact' version 4.3.9 to 4.3.12, our service is not building anymore.

The message

> Could not find method hasPactsFromPactBroker() for arguments [our server] on object of type au.com.dius.pact.provider.gradle.GradleProviderInfo.

callstack

Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method hasPactsFromPactBroker() for arguments [our server] on object of type au.com.dius.pact.provider.gradle.GradleProviderInfo.
	at org.gradle.internal.metaobject.AbstractDynamicObject$CustomMissingMethodExecutionFailed.<init>(AbstractDynamicObject.java:190)
	at org.gradle.internal.metaobject.AbstractDynamicObject.methodMissingException(AbstractDynamicObject.java:

we use gradle version https://services.gradle.org/distributions/gradle-7.5-all.zip

Any hint, any migration info ?
Thank you in advance.
Michal

@rholshausen rholshausen added the bug Indicates an unexpected problem or unintended behavior label Jul 29, 2022
@rholshausen
Copy link
Contributor

Looks like it is an issue with how the Kotlin compiler is generating the method signatures.

I'm going to fix it but changing the methods on the GradleProviderInfo class, but until then you can add any key-value parameter and it will then match the method signature.

I.e.,

     hasPactsFromPactBroker('http://server-url', value: true) // can add any key-value here

rholshausen pushed a commit that referenced this issue Jul 29, 2022
@micjaesc
Copy link
Author

Great, thank you, I will wait for 4_3_13

rholshausen pushed a commit that referenced this issue Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants