UndecoratorBis icon indicating copy to clipboard operation
UndecoratorBis copied to clipboard

Gradle wrapper 2.3 is outdated now

Open RaviOnline opened this issue 5 years ago • 0 comments

Hi,

The build script and wrapper files are using a really outdated Gradle version 2.3.

When setting up the project (by cloning and importing), IntelliJ IDE first downloads the 2.3 Gradle wrapper and then throws an incompatibility error suggesting an upgrade to 2.6.

On version 2.6, IntelliJ again throws a Java 10 compatibility error:

The project uses Gradle 2.6 which is incompatible with IDEA running on Java 10 or newer. See details at https://github.com/gradle/gradle/issues/8431 Possible solution:

  • Upgrade Gradle wrapper to 4.8.1 version and re-import the project

The first error was similar to the one above, except it didn't mention any Java version. (IIRC)

With version 4.8.1, Gradle build throws the following error:

Build file 'D:\Workspace\GitHub\UndecoratorBis\build.gradle' line: 57

A problem occurred evaluating root project 'undecorator-root'.

Cannot cast object '[C:\Program Files\Java\jdk1.8.0_211\jre\lib\ext\jfxrt.jar, configuration ':demo:compileOnly']' with class 'java.util.ArrayList' to class 'org.gradle.api.file.FileCollection' due to: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: org.gradle.api.file.FileCollection(java.io.File, org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated)

I see that the Gradle build was a pull request offered by @aalmiray, so, I think, he would be the right person to look into this. Let me know if you need any more info.

Thanks.

RaviOnline avatar Feb 04 '20 09:02 RaviOnline