You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by "Hardes1 (via GitHub)" <gi...@apache.org> on 2025/06/04 06:49:58 UTC
[I] Deprecated Gradle features used with Grails 7. [grails-core]
Hardes1 opened a new issue, #14780:
URL: https://github.com/apache/grails-core/issues/14780
### Issue description
Hi, I am currently trying to support Grails 7 inside IntelliJ based IDEs, ticket is [here](https://youtrack.jetbrains.com/issue/IDEA-372363/Update-Grails-Plugin-to-support-Apache-Grails-changes).
I have noticed that the Grails plugins like `org.apache.grails.gradle.grails-web` or `org.apache.grails.gradle.grails-gsp` use deprecated Gradle features (the output of this warning can be seen when configuring a Gradle project).
While likely it doesn't affect the work of the framework, I can't write tests to ensure that the import is correct.
Example of project you gave to me can be found [here](https://github.com/jamesfredley/grails-7.0.0-SNAPSHOT-APACHE)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@grails.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Deprecated Gradle features used with Grails 7 [grails-core]
Posted by "jdaugherty (via GitHub)" <gi...@apache.org>.
jdaugherty commented on issue #14780:
URL: https://github.com/apache/grails-core/issues/14780#issuecomment-2968993043
@Hardes1 We've merged [PR#1480](https://github.com/apache/grails-core/pull/14805) which should bring the number of these deprecations to 43. The remaining list can be found here: https://ge.grails.org/s/zdvivgcln46ss/deprecations
The remaining issues are:
1. (gradle 10 deprecation) 1 usage of StartParameter.isConfigurationCacheRequested. This is the asciidoctor plugin & the open ticket is https://github.com/asciidoctor/asciidoctor-gradle-plugin/issues/751
2. (gradle 10 deprecation) asset plugin is using project inside of it's task. I've opened https://github.com/wondrify/asset-pipeline/issues/377 to address this.
3. (gradle 9 deprecation) Test.classpath & Test.testClassesDirs in custom Test tasks has been deprecated. This is due to Grails' IntegrationTestPlugin defining it's integration tests the legacy way. Unfortunately, the expected replacement is JVM Test Suites, which is still incubating. We intend to address this under https://github.com/apache/grails-core/issues/14738 once the JVM test suites are out of incubation.
4. (gradle 10 deprecation) project is used inside of extractConstraints. We don't have an easy solution for this one at this time, since this task is what generates our dependency versions that's stored in our [help documentation](https://docs.grails.org/latest/ref/Versions/Grails%20BOM.html). I need to open an upstream gradle ticket on this one. I've opened https://github.com/apache/grails-core/issues/14810 to address this.
Since we have separate tickets for the remaining deprecations and we've removed all of the easy ones / dropped it from [604](https://ge.grails.org/s/lzwhvyazvn33k/deprecations) to [43](https://ge.grails.org/s/zdvivgcln46ss/deprecations?expanded=WyIzIl0), I'm going to close this ticket.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Deprecated Gradle features used with Grails 7 [grails-core]
Posted by "jdaugherty (via GitHub)" <gi...@apache.org>.
jdaugherty closed issue #14780: Deprecated Gradle features used with Grails 7
URL: https://github.com/apache/grails-core/issues/14780
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Deprecated Gradle features used with Grails 7 [grails-core]
Posted by "jdaugherty (via GitHub)" <gi...@apache.org>.
jdaugherty commented on issue #14780:
URL: https://github.com/apache/grails-core/issues/14780#issuecomment-2938860484
Thank you for opening the ticket. A recent build showing some of the deprecated Gradle features is here: https://ge.grails.org/s/2cais25vnxmbs/deprecations
At a high level, they are:
1. (Gradle 9) setFileMode() usages in copyspec
2. (Gradle 9) setDirMode() usages in copyspec
3. (Gradle 10) Invocation of Task.project at execution time has been deprecated.
4. (Gradle 9) Relying on the convention for Test.classpath in custom Test tasks has been deprecated.
5. (Gradle 9) The StartParameter.isConfigurationCacheRequested property has been deprecated.
6. (Gradle 9) The IdeaModule.testSourceDirs property has been deprecated.
1 & 2 are planned to be fixed in the next RC.
3 needs fixed in the asset plugin for us to fully resolve, so we may not be able to resolve this in a timely manner.
4 is deprecated, but the replacement is still considered experimental.
5 is dependent on the Asciidoctor plugin, so we may not be able to resolve this in a timely manner.
6 I can fix in the next RC.
Since some of these deprecations are dependent on external plugins / gradle standardizing an API, can you write tests by disabling the warning mode? Either by setting the property `org.gradle.warning.mode=none` or by using an environment variable (maybe export GRADLE_OPTS="-Dorg.gradle.warning.mode=none")?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Deprecated Gradle features used with Grails 7 [grails-core]
Posted by "jdaugherty (via GitHub)" <gi...@apache.org>.
jdaugherty commented on issue #14780:
URL: https://github.com/apache/grails-core/issues/14780#issuecomment-2940814955
We're in the middle of trying to release M4, but in the mean time I've created a branch that addresses 1, 2, 6 above here: https://github.com/jdaugherty/grails-core/tree/gradle-deprecations
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org