Skip to content

Commit 1e82950

Browse files
committed
Move JVM configs to gradle.properties
1 parent 8ecf335 commit 1e82950

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/gradle-build.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
run: chmod +x gradlew
6262
- name: Build with Java 8
6363
working-directory: ./java-8
64-
run: .././gradlew -Dorg.gradle.jvmargs=-Xmx4g build
64+
run: .././gradlew build
6565

6666
build:
6767
needs: [build-java-latest, build-java-8]

‎gradle.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

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

‎java-8/gradle.properties‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
org.gradle.jvmargs=-Xmx8g -XX:MaxMetaspaceSize=2g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
2+
13
mavenArtifactId = msgraph-sdk-java

0 commit comments

Comments
 (0)