mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
gradle: move to dedicated directory to prevent clashes with other java applications
This commit is contained in:
parent
52fb36e7e0
commit
4dde32b4f2
1 changed files with 3 additions and 3 deletions
|
@ -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