build scripts: disable Gradle Daemon

Build scripts aren't started often so it makes no sense to use the daemon in them. Disabling the daemon explicitly suppresses annoying "please consider using the Gradle Daemon" message in build outputs.
This commit is contained in:
nik
2017-05-16 08:55:32 +03:00
parent c061af0cb9
commit 9eba9dd2df
@@ -68,6 +68,7 @@ class GradleRunner {
command.add("${projectDir.absolutePath}/$gradleScript".toString())
command.addAll(tasks)
command.add('--stacktrace')
command.add('--no-daemon')
def process = new ProcessBuilder(command).directory(projectDir).start()
process.consumeProcessOutputStream((OutputStream)System.out)
process.consumeProcessErrorStream((OutputStream)System.err)