From 7bc44a9086f7f9cdfa1a8ef3f2f158fddf9eed2f Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Fri, 6 Mar 2015 01:25:12 +0100 Subject: [PATCH] Set Gradle Daemon JVM args compatible with JDK 9 This commit adds the following to gradle.properties in order to execute the Gradle daemon on JDK 9, since Gradle's DaemonParameters automatically sets the MaxPermSize JVM argument, which is no longer supported on JDK 9. org.gradle.jvmargs=-XX:MaxMetaspaceSize=1024m -Xmx1024m Issue: SPR-12549 --- gradle.properties | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gradle.properties b/gradle.properties index 31ed731133..fa3072bb48 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1,6 @@ version=4.2.0.BUILD-SNAPSHOT + +# The following is necessary for running the Gradle daemon on JDK 9, since +# Gradle's DaemonParameters automatically sets the MaxPermSize JVM argument, +# which is no longer supported on JDK 9. +org.gradle.jvmargs=-XX:MaxMetaspaceSize=1024m -Xmx1024m