3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #4675 from iyzsong/gradle

gradle: update to 2.1
This commit is contained in:
lethalman 2014-10-26 19:44:16 +01:00
commit 8ed9a7106d

View file

@ -1,11 +1,11 @@
{ stdenv, fetchurl, unzip, jdk, makeWrapper }:
stdenv.mkDerivation rec {
name = "gradle-1.11";
name = "gradle-2.1";
src = fetchurl {
url = "http://services.gradle.org/distributions/${name}-bin.zip";
sha256 = "14a0qdzjiar97l9a0i3ds2y48p1lrqkj7skkkvhz0r29hbgkbqh7";
sha256 = "0y7qifc61nng24zn73bdwh5d0m25dnllfiwfkyw220mblag4zviy";
};
installPhase = ''
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
makeWrapper ${jdk}/bin/java $out/bin/gradle \
--set JAVA_HOME ${jdk} \
--add-flags "-classpath $out/lib/gradle-launcher-1.11.jar org.gradle.launcher.GradleMain"
--add-flags "-classpath $out/lib/gradle-launcher-2.1.jar org.gradle.launcher.GradleMain"
'';
phases = "unpackPhase installPhase";