Skip to content

Commit

Permalink
Move JVM configs to gradle.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Ndiritu committed Jul 3, 2024
1 parent 8ecf335 commit 5df5596
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: chmod +x gradlew
- name: Build with Java 8
working-directory: ./java-8
run: .././gradlew -Dorg.gradle.jvmargs=-Xmx4g build
run: .././gradlew build

build:
needs: [build-java-latest, build-java-8]
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# The size of the library demands a large amount of RAM to build. Increase as necessary if you get GC errors
## linux requires 10G, OSX requires 11G
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=2g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx8g -XX:MaxMetaspaceSize=2g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.parallel=true
org.gradle.caching=true

Expand Down

0 comments on commit 5df5596

Please sign in to comment.