You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* What went wrong:
Execution failed for task ':my-service:findMainClass'.
> Unsupported class file major version 61
With
buildscript {
dependencies {
classpath "org.grails:grails-gradle-plugin:5.1.4"
// To support JDK 17. Try to remove each time you upgrade grails-gradle-plugin.
classpath "org.codehaus.groovy:groovy:3.0.10"
}
}
it works.
Please remove the need to manually add classpath "org.codehaus.groovy:groovy:3.0.10" line.
./gradlew --version
------------------------------------------------------------
Gradle 7.4.2
------------------------------------------------------------
Build time: 2022-03-31 15:25:29 UTC
Revision: 540473b8118064efcc264694cbcaa4b677f61041
Kotlin: 1.5.31
Groovy: 3.0.9
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 17.0.3 (Azul Systems, Inc. 17.0.3+7-LTS)
OS: Linux 5.11.0-37-generic amd64
The text was updated successfully, but these errors were encountered:
With
on JDK 17, we get an error on
./gradlew assemble
.With
it works.
Please remove the need to manually add
classpath "org.codehaus.groovy:groovy:3.0.10"
line.The text was updated successfully, but these errors were encountered: