1

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.

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770
jega
  • 21
  • 3
  • Does this answer your question? [Where can I get groovy-all-4.0.0.jar?](https://stackoverflow.com/questions/71000075/where-can-i-get-groovy-all-4-0-0-jar) – Jeff Scott Brown Feb 24 '23 at 14:12

1 Answers1

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.

ou_ryperd
  • 2,037
  • 2
  • 18
  • 23