diff --git a/build.gradle b/build.gradle index c93e205de..966cbc549 100644 --- a/build.gradle +++ b/build.gradle @@ -24,7 +24,7 @@ buildscript { } allprojects { - tasks.withType(JavaCompile) { + tasks.withType(JavaCompile).configureEach { options.fork = true // Fork your compilation into a child process options.forkOptions.setMemoryMaximumSize("4g") // Set maximum memory to 4g options.compilerArgs << "-Xlint:all"