Skip to content

Commit

Permalink
Increase Gradle wrapper memory (ExpediaGroup#624)
Browse files Browse the repository at this point in the history
* Increase gradle memory

Increase the gradle jvm max memory as we are seeing intermittent OutOfMemory errors on GitHub Actions

* Remove incubating features

Co-authored-by: Dariusz Kuc <dariusz_kuc@hotmail.com>
  • Loading branch information
smyrick and dariuszkuc committed Feb 29, 2020
1 parent 7348343 commit ca0d4a0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions examples/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ version = 1.0-SNAPSHOT
org.gradle.caching=true
org.gradle.parallel=true
kapt.incremental.apt=true

# Increase the memory to run on GH Actions
# See: https://github.com/gradle/gradle/issues/8139
org.gradle.jvmargs=-Xmx2g -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError
4 changes: 4 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ kapt.incremental.apt=true
# See https://github.com/gradle/gradle/issues/11308
systemProp.org.gradle.internal.publish.checksums.insecure=true

# Increase the memory to run on GH Actions
# See: https://github.com/gradle/gradle/issues/8139
org.gradle.jvmargs=-Xmx2g -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError

# dependencies
kotlinVersion = 1.3.61
kotlinCoroutinesVersion = 1.3.3
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit ca0d4a0

Please sign in to comment.