termux-am: Avoid the gradle daemon for real
This commit is contained in:
parent
99793cee35
commit
86cc85efc0
@ -18,9 +18,14 @@ termux_step_make() {
|
|||||||
mkdir $TERMUX_PKG_TMPDIR/gradle
|
mkdir $TERMUX_PKG_TMPDIR/gradle
|
||||||
unzip -q $TERMUX_PKG_CACHEDIR/gradle-5.4-bin.zip -d $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
|
export ANDROID_HOME
|
||||||
GRADLE_OPTS=" -Dorg.gradle.daemon=false" \
|
export GRADLE_OPTS="-Dorg.gradle.daemon=false -Xmx1536m"
|
||||||
$TERMUX_PKG_TMPDIR/gradle/gradle-5.4/bin/gradle \
|
|
||||||
|
$TERMUX_PKG_TMPDIR/gradle/gradle-5.4/bin/gradle \
|
||||||
:app:assembleRelease
|
:app:assembleRelease
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user