Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ java {
sourceCompatibility = 1.8
targetCompatibility = 1.8

// The Management API client is Fern-generated (~4000 types). javac's type
// inference over that tree exhausts the compiler's default heap. Because the
// Java 8 toolchain differs from the JDK running Gradle, javac is forked into a
// separate process, so org.gradle.jvmargs (the daemon heap) does not apply —
// the heap must be set on the forked compiler here.
tasks.withType(JavaCompile).configureEach {
options.fork = true
options.forkOptions.memoryMaximumSize = '2g'
}

jar {
manifest {
attributes 'Automatic-Module-Name': 'com.auth0.java'
Expand Down
4 changes: 4 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m

GROUP=com.auth0
POM_ARTIFACT_ID=auth0
VERSION_NAME=3.0.0
Expand Down
Loading