Browse Source

termux-am: Avoid the gradle daemon for real

emacs-27
Fredrik Fornwall 6 years ago
parent
commit
9f97b518af
  1. 9
      packages/termux-am/build.sh

9
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
}

Loading…
Cancel
Save