Hi Groovy devs, At Gradle we are currently investigating upgrading to Groovy 4 in the upcoming Gradle 8 release. We have a branch here where we are testing out the upgrade:
https://github.com/gradle/gradle/pull/18552 It looked mostly good with 4.0.0-beta-1, as everything compiled and most tests were passing, but 4.0.0-beta-2 broke two things: - https://issues.apache.org/jira/browse/GROOVY-10466 - https://issues.apache.org/jira/browse/GROOVY-10467 Both can be reproduced by: - Check out https://github.com/gradle/gradle/tree/lptr/groovy-4-bugs - Run ./gradlew :compileAll - it works using 4.0.0-beta-1! - Change the Groovy version here to `4.0.0-beta-2`: https://github.com/gradle/gradle/blob/860e74522dcbf2df635a27f38fef1daa0b093322/build-logic/dependency-modules/src/main/kotlin/gradlebuild/modules/extension/ExternalModulesExtension.kt#L23 - Run ./gradlew :compileAll --continue - it now breaks in multiple places Could you take a look at these issues please? While Gradle 8 is not going to happen for a while, we need to make the decision fairly soon whether we can upgrade, or should delay the upgrade until Gradle 9. Another question that influences our decision here: is Java 18 (or later) going to be supported in future releases of Groovy 3? Thanks for the help, and congrats on the release! -- Lóránt Pintér Engineer Gradle W. gradle.com