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:
@@ -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=",
|
||||
|
||||
Reference in New Issue
Block a user