From 9f97b518af10705034d755138516559b8f512dd2 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 22 Apr 2019 01:31:54 +0200 Subject: [PATCH] termux-am: Avoid the gradle daemon for real --- packages/termux-am/build.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/termux-am/build.sh b/packages/termux-am/build.sh index 461f9fc8a..c802fa5a9 100644 --- a/packages/termux-am/build.sh +++ b/packages/termux-am/build.sh @@ -18,9 +18,14 @@ termux_step_make() { mkdir $TERMUX_PKG_TMPDIR/gradle unzip -q $TERMUX_PKG_CACHEDIR/gradle-5.4-bin.zip -d $TERMUX_PKG_TMPDIR/gradle + # Avoid spawning the gradle daemon due to org.gradle.jvmargs + # being set (https://github.com/gradle/gradle/issues/1434): + rm gradle.properties + export ANDROID_HOME - GRADLE_OPTS=" -Dorg.gradle.daemon=false" \ - $TERMUX_PKG_TMPDIR/gradle/gradle-5.4/bin/gradle \ + export GRADLE_OPTS="-Dorg.gradle.daemon=false -Xmx1536m" + + $TERMUX_PKG_TMPDIR/gradle/gradle-5.4/bin/gradle \ :app:assembleRelease }