Set the min and max heap sizes in the Gradle wrapper used by the Bamboo build process in an attempt to avoid Bamboo's JVM initialization error.

This commit is contained in:
John Blum
2013-12-16 11:48:56 -08:00
parent 8dee6f7ab2
commit a861346b95

View File

@@ -233,7 +233,7 @@ task wrapper(type: Wrapper) {
gradleVersion = "1.9"
doLast() {
def gradleOpts = "-XX:MaxPermSize=1024m -Xmx1024m"
def gradleOpts = "-XX:MaxPermSize=1024m -Xms256m -Xmx1024m"
def gradleBatOpts = "$gradleOpts -XX:MaxHeapSize=256m"
File wrapperFile = file("gradlew")
wrapperFile.text = wrapperFile.text.replace("DEFAULT_JVM_OPTS=",