Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fails to build on Ubuntu 15.10 due to system installed groovy2 2.4.3 #97
Comments
iam-TJ
commented
Nov 21, 2015
|
Update. The various build.gradle files declare:
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/e6fc2dc8fe2512efa0e78a2c0ae52ea1d724106d: |
iam-TJ
commented
Nov 21, 2015
|
The fix appears to be to update the classpath in build.gradle
|
iam-TJ commentedNov 21, 2015
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.
Where:
Build file '/home/all/SourceCode/jd-gui/build.gradle'
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
...