-
Notifications
You must be signed in to change notification settings - Fork 434
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
task 'contracts' is not available in gradle plugin #1795
Comments
I don't recall ever having a |
Two sources actually
However, note that the one generated by Though, it shouldn't affect
|
I'm not a Gradle expert - I didn't know that |
I'm not an expert by any means, too. If it's there, why would Gradle then complain that it isn't? And even listing the tasks list doesn't show the |
ping @shanman190 |
So like @marcingrzejszczak mentioned, there hasn't ever been a The correct configuration for
I've filed spring-io/start.spring.io gh-938 to get the issue resolved. |
Thanks for the clarification. Wasn't aware of |
Also, I re-configured to this and I am able to build now contracts {
testFramework = org.springframework.cloud.contract.verifier.config.TestFramework.JUNIT5
failOnNoContracts = false
}
tasks.named('contractTest') {
useJUnitPlatform()
} |
@bwgjoseph, if you feel like we have solved your problem, I think we can close this issue and rely on the linked issue to Spring Initializer. |
Yes, sure. Thank you for both your help! |
Describe the bug
contracts
task does not seem to exist inorg.springframework.cloud.contract:3.1.3
gradle pluginSample
This is the full
build.gradle
build.gradle - click to expand
Faced with this
I removed the
contracts
task and ran./gradlew tasks
and I have all these tasks butcontracts
is definitely not one of them.Was it removed from the latest plugin? Or did I configure something wrongly?
Thanks!
The text was updated successfully, but these errors were encountered: