Skip to content

Commit 0f64a76

Browse files
committed
chore: update build file wirh forkOptions
1 parent e181949 commit 0f64a76

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

‎build.gradle‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ java {
4949
sourceCompatibility = 1.8
5050
targetCompatibility = 1.8
5151

52+
// The Management API client is Fern-generated (~4000 types). javac's type
53+
// inference over that tree exhausts the compiler's default heap. Because the
54+
// Java 8 toolchain differs from the JDK running Gradle, javac is forked into a
55+
// separate process, so org.gradle.jvmargs (the daemon heap) does not apply —
56+
// the heap must be set on the forked compiler here.
57+
tasks.withType(JavaCompile).configureEach {
58+
options.fork = true
59+
options.forkOptions.memoryMaximumSize = '2g'
60+
}
61+
5262
jar {
5363
manifest {
5464
attributes 'Automatic-Module-Name': 'com.auth0.java'

‎gradle.properties‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Specifies the JVM arguments used for the daemon process.
2+
# The setting is particularly useful for tweaking memory settings.
3+
org.gradle.jvmargs=-Xmx1536m
4+
15
GROUP=com.auth0
26
POM_ARTIFACT_ID=auth0
37
VERSION_NAME=3.0.0

0 commit comments

Comments
 (0)