Space-assignment syntax in Groovy DSL has been deprecated. #1061
Labels
backport 2.x
backport PRs to 2.x branch
good first issue
Good for newcomers
help wanted
Extra attention is needed
What is the bug?
See: https://docs.gradle.org/8.12.1/userguide/upgrading_version_8.html#groovy_space_assignment_syntax
In our
build.gradle
we need to changepropertyName value
syntax to one of:propertyName = value setPropertyName(value) setPropertyName value propertyName(value)
I prefer the top or bottom options. Consistency with the other settings around it is probably more important for readability, e.g. for dependencies we should probably switch to
propertyName(value)
but in other places where=
is used we should usepropertyName = value
.How can one reproduce the bug?
./gradlew test
from the project rootbuild.gradle
marked with this error:What is the expected behavior?
No problems report, repo is ready for Gradle 10
What is your host/environment?
Gradle 8 with deprecation warnings in an incubating problems report
Do you have any screenshots?
The text was updated successfully, but these errors were encountered: