Upgrading groovy from 2.4 to 3.0 , why Intellij complains about could not resolve groovy-all-3.0.15-indy.jar?

huangapple go评论60阅读模式
英文:

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.

英文:

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.

huangapple
  • 本文由 发表于 2023年2月24日 13:16:13
  • 转载请务必保留本文链接:https://go.coder-hub.com/75552845.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定