forked from mirrors/nixpkgs
gradle: move to dedicated directory to prevent clashes with other java applications
This commit is contained in:
parent
52fb36e7e0
commit
4dde32b4f2
|
@ -9,10 +9,10 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -pv $out
|
||||
cp -rv lib $out
|
||||
mkdir -pv $out/gradle
|
||||
cp -rv lib $out/gradle
|
||||
|
||||
gradle_launcher_jar=$(echo $out/lib/gradle-launcher-*.jar)
|
||||
gradle_launcher_jar=$(echo $out/gradle/lib/gradle-launcher-*.jar)
|
||||
test -f $gradle_launcher_jar
|
||||
makeWrapper ${jdk}/bin/java $out/bin/gradle \
|
||||
--set JAVA_HOME ${jdk} \
|
||||
|
|
Loading…
Reference in a new issue