Closed iam-TJ closed 5 years ago
Update. The various build.gradle files declare:
compile 'org.codehaus.groovy:groovy:2.4.0'
but the files fetched into the gradle cache are:
$ ls -l ~/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy-all/2.3.10/* /home/tj/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy-all/2.3.10/871fd599951c0acd361d3c4752e874d809b44f89: total 28 -rw-r--r-- 1 tj root 18404 Nov 21 04:31 groovy-all-2.3.10.pom
/home/tj/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy-all/2.3.10/e6fc2dc8fe2512efa0e78a2c0ae52ea1d724106d: total 7132 -rw-r--r-- 1 tj root 7291855 Nov 21 04:31 groovy-all-2.3.10.jar
The fix appears to be to update the classpath in build.gradle
diff --git a/build.gradle b/build.gradle
index ef05a24..056612e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -5,7 +5,7 @@ buildscript {
dependencies {
classpath 'com.netflix.nebula:gradle-ospackage-plugin:2.2.6'
- classpath 'org.spockframework:spock-core:1.0-groovy-2.3'
+ classpath 'org.spockframework:spock-core:1.0-groovy-2.4'
}
}
Groovy has been remove from JD-GUI project.
On Ubuntu 15.10 the system-installed groovy2 2.4.3 over-rides the project dependency on 2.4, but I'm not sure how to tell gradle to ignore the system-installed package, or even if that is possible.
$ gradle build
FAILURE: Build failed with an exception.
What went wrong: Could not compile build file '/home/all/SourceCode/jd-gui/build.gradle'.
$ apt-cache policy groovy2 groovy2: Installed: 2.4.3+dfsg-2ubuntu1 Candidate: 2.4.3+dfsg-2ubuntu1 Version table: *\ 2.4.3+dfsg-2ubuntu1 0 500 http://archive.ubuntu.com/ubuntu/ wily/universe amd64 Packages 100 /var/lib/dpkg/status
$ apt-cache rdepends groovy2 groovy2 Reverse Depends: libxbean-java libgradle-core-java libelasticsearch1.6-java gant freeplane
$ apt-cache depends gradle gradle Depends: default-jre-headless Depends: libgradle-core-java ....
$ apt-cache depends libgradle-core-java libgradle-core-java Depends: ant Depends: groovy2 ...