From daefadecc948eb5591dbadd8e661f8d216e7214b Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Wed, 6 Jun 2018 18:08:35 +0200 Subject: [PATCH] Better gradle option. Enable `--no-daemon` : Using the daemon make gradle keep "configuration" (like plugin path). If gradle installation path change, it will break kiwix-android build. Enable `--build-cache` : This is not the case by default :/ This should greatly improve compilation speed. --- kiwixbuild/dependencies/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiwixbuild/dependencies/base.py b/kiwixbuild/dependencies/base.py index 645aab9..13d6de5 100644 --- a/kiwixbuild/dependencies/base.py +++ b/kiwixbuild/dependencies/base.py @@ -427,7 +427,7 @@ class MesonBuilder(Builder): class GradleBuilder(Builder): gradle_target = "build" - gradle_option = "-i" + gradle_option = "-i --no-daemon --build-cache" def build(self): self.command('configure', self._configure)