diff --git a/build.gradle b/build.gradle index e8dc3a438ad77..f02f6626e95fb 100644 --- a/build.gradle +++ b/build.gradle @@ -264,6 +264,8 @@ tasks.register("branchConsistency") { allprojects { // configure compiler options tasks.withType(JavaCompile).configureEach { JavaCompile compile -> + options.fork = true + configure(options.forkOptions) { memoryMaximumSize = project.property('options.forkOptions.memoryMaximumSize') }