-
Notifications
You must be signed in to change notification settings - Fork 459
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
predeclareDepsFromBuildscript
- Mutating configuration container for buildscript of root project has been deprecated.
#2394
Comments
predeclareDepsFromBuildscript
- Mutating configuration container for buildscript of root project has been deprecated.
Does |
If I leave out |
Roger. So we either need to:
Here is the relevant code, PRs welcome spotless/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/GradleProvisioner.java Lines 103 to 144 in f77aead
|
Why does it include a hashcode in the configuration name? Can there be multiple such configurations in the same project? |
There can be multiple
Could also remove the group, which would make it just
Which configuration naming convention would work best for you? |
If we can leave out the version number from the name, that would be great. I don't have an opinion whether the group id should be included or not. Works both for me. |
Summary:
Gradle shows a deprecation warning when Spotless is used in a multi-module build with:
Warning:
Mutating configuration container for buildscript of root project 'xy' using create(String) has been deprecated.
This will fail with an error in Gradle 9.0.
Gradle: 8.12
Spotless: 7.0.1
The text was updated successfully, but these errors were encountered: