英文:
Upgrading groovy from 2.4 to 3.0 , why Intellij complains about could not resolve groovy-all-3.0.15-indy.jar?
问题
我正在将一个Spring MVC应用程序从Java 1.8升级到Java 17。我尝试将Groovy版本从2.4.x升级到3.0.15。如果我运行干净的构建,无论是从IntelliJ终端还是从Mac命令提示符运行,构建都会成功,但如果我使用Gradle文件上显示的Gradle刷新图标进行刷新,就会出现更新,并且构建会失败,出现以下异常:
找不到groovy-all-3.0.15-indy.jar (org.codehaus.groovy:groovy-all:3.0.15)。
在以下位置搜索:
https://repo1.maven.org/maven2/org/codehaus/groovy/groovy-all/3.0.15/groovy-all-3.0.15-indy.jar
我理解indy.jar
不是Groovy的一部分,但为什么IntelliJ要获取indy.jar
呢?
我已经尝试将groovy-all
更改为groovy
,但构建需要与groovy-all
捆绑的其他依赖项。
英文:
I am upgrading a Spring MVC application from Java 1.8 to Java 17. I have tried to update the groovy version from 2.4.x to 3.0.15. If I run the clean build, either from IntelliJ terminal or Mac command prompt, the build runs, but if I refresh using the Gradle refresh image shown on the gradle file, there is an update and the build fails with the following exception:
Could not find groovy-all-3.0.15-indy.jar (org.codehaus.groovy:groovy-all:3.0.15).
Searched in the following locations:
https://repo1.maven.org/maven2/org/codehaus/groovy/groovy-all/3.0.15/groovy-all-3.0.15-indy.jar
I do understand that indy.jar
is not part of groovy, but why is IntelliJ trying to get indy.jar
?
I have tried to change grooy-all
to groovy
, but the build needs other dependencies which are bundled with groovy-all
.
答案1
得分: 2
the groovy-all jar was deprecated from V2.5. The different libraries are split into separate jars. You can use the groovy-all Gradle pom dependency here if you want all.
More info here.
Indy (InvokeDynamic) has also been dropped because of a dependency on a higher than 1.8 java version.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论