Произошла ошибка при запуске интерфейса командной строки Grails: файл неподдерживаемого класса основной версии 61

#gradle #grails

#грейдер #граали

Вопрос:

Я пытаюсь обновить версию java для приложения grails с 8 до 17, и я получаю эту ошибку при использовании следующих обновленных версий:

grailsVersion=5.0.0-RC4

gradleWrapperVersion=7,3

Калибровка=3.0.9

javaVersion = версия openjdk «17.0.1» 2021-10-19 LTS

JAVA_HOME = /usr/lib/jvm/java-1.17.0-openjdk-amd64

Примечание: Одна из моих зависимостей для проекта скомпилирована в java 17.

   root@ns382746:~/dev/project/project-web# grails clean --stacktrace --verbose    | Error Error occurred running Grails CLI: Unsupported class file major version 61    java.lang.IllegalArgumentException: Unsupported class file major version 61    at groovyjarjarasm.asm.ClassReader.lt;initgt;(ClassReader.java:189)    at groovyjarjarasm.asm.ClassReader.lt;initgt;(ClassReader.java:170)    at groovyjarjarasm.asm.ClassReader.lt;initgt;(ClassReader.java:156)    at groovyjarjarasm.asm.ClassReader.lt;initgt;(ClassReader.java:277)    at org.codehaus.groovy.ast.decompiled.AsmDecompiler.parseClass(AsmDecompiler.java:81)    at org.codehaus.groovy.control.ClassNodeResolver.findDecompiled(ClassNodeResolver.java:251)    at org.codehaus.groovy.control.ClassNodeResolver.tryAsLoaderClassOrScript(ClassNodeResolver.java:189)    at org.codehaus.groovy.control.ClassNodeResolver.findClassNode(ClassNodeResolver.java:169)    at org.codehaus.groovy.control.ClassNodeResolver.resolveName(ClassNodeResolver.java:125)    at org.codehaus.groovy.control.ResolveVisitor.resolveToOuter(ResolveVisitor.java:871)    at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:506)    at org.codehaus.groovy.control.ResolveVisitor.resolveFromDefaultImports(ResolveVisitor.java:663)    at org.codehaus.groovy.control.ResolveVisitor.resolveFromDefaultImports(ResolveVisitor.java:626)    at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:505)    at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:468)    at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:338)    at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:330)    at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:326)    at org.codehaus.groovy.control.ResolveVisitor.transformConstructorCallExpression(ResolveVisitor.java:1239)    at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:902)    at org.codehaus.groovy.control.ResolveVisitor.transformMethodCallExpression(ResolveVisitor.java:1277)    at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:898)    at org.codehaus.groovy.ast.expr.BooleanExpression.transformExpression(BooleanExpression.java:44)    at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:907)    at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitIfElse(ClassCodeExpressionTransformer.java:119)    at org.codehaus.groovy.ast.stmt.IfStatement.visit(IfStatement.java:41)    at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:86)    at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:164)    at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:1564)    at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:69)    at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClassCodeContainer(ClassCodeVisitorSupport.java:138)    at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitConstructorOrMethod(ClassCodeVisitorSupport.java:111)    at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitConstructorOrMethod(ClassCodeExpressionTransformer.java:66)    at org.codehaus.groovy.control.ResolveVisitor.visitConstructorOrMethod(ResolveVisitor.java:294)    at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(ClassCodeVisitorSupport.java:106)    at org.codehaus.groovy.ast.ClassNode.visitMethods(ClassNode.java:1099)    at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1092)    at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:52)    at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1473)    at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:262)    at org.codehaus.groovy.control.CompilationUnit.lambda$new$16(CompilationUnit.java:738)    at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:901)    at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:627)    at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:389)    at groovy.lang.GroovyClassLoader.lambda$parseClass$3(GroovyClassLoader.java:332)    at org.codehaus.groovy.runtime.memoize.StampedCommonCache.compute(StampedCommonCache.java:163)    at org.codehaus.groovy.runtime.memoize.StampedCommonCache.getAndPut(StampedCommonCache.java:154)    at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:330)    at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:314)    at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:257)    at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)    at groovy.lang.GroovyClassLoader$parseClass.call(Unknown Source)    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139)    at groovy.util.ConfigSlurper.parse(ConfigSlurper.groovy:174)    at org.grails.config.CodeGenConfig.loadGroovy(CodeGenConfig.groovy:149)    at org.grails.cli.GrailsCli.loadApplicationConfig(GrailsCli.groovy:592)    at org.grails.cli.GrailsCli.initializeApplication(GrailsCli.groovy:291)    at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:269)    at org.grails.cli.GrailsCli.main(GrailsCli.groovy:159)    | Error Error occurred running Grails CLI: Unsupported class file major version 61   

Как я могу решить эту проблему, поскольку понижение версии java зависимости не является вариантом. Кроме того, будет полезно указать на первопричину(причины) проблемы.

Заранее спасибо.