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

canIDeploy Gradle task not working on Gradle 7.1 #1430

Closed
georgeharley opened this issue Sep 6, 2021 · 2 comments
Closed

canIDeploy Gradle task not working on Gradle 7.1 #1430

georgeharley opened this issue Sep 6, 2021 · 2 comments

Comments

@georgeharley
Copy link

This looks related to #1429 and #1374.

Using a Gradle wrapper at 7.1 and version 4.1.26 of the "au.com.dius.pact" Gradle plugin, the canIDeploy task fails as shown below.

$ ./gradlew canIDeploy -Ppacticipant=pactProvider -PpacticipantVersion=0.0.6
> Task :canIDeploy FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':canIDeploy' (type 'PactCanIDeployTask').
  - In plugin 'au.com.dius.pact' type 'au.com.dius.pact.provider.gradle.PactCanIDeployTask' property 'brokerClient' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.1/userguide/validation_problems.html#missing_annotation for more details about this problem.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
1 actionable task: 1 executed

When the Gradle wrapper is switched from 7.1 to 6.8 then the canIDeploy task works fine again.

@georgeharley
Copy link
Author

georgeharley commented Sep 9, 2021

Seeing the task fail as described in the issue description even when using version 4.2.11 of the Pact JVM dependencies with Gradle 7.1.

@zanella
Copy link

zanella commented Jul 15, 2022

Bumped to 4.1.38 and it's fixed, this issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants