From 620d00259140420e02c8954cc9077ef736198c92 Mon Sep 17 00:00:00 2001 From: Waiting Idly <25394029+WaitingIdly@users.noreply.github.com> Date: Tue, 14 May 2024 17:50:52 -0700 Subject: [PATCH 1/2] add additionalJavaArguments --- build.gradle | 5 +++++ gradle.properties | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/build.gradle b/build.gradle index 8ea7b05..80c1057 100644 --- a/build.gradle +++ b/build.gradle @@ -58,6 +58,7 @@ propertyDefaultIfUnset("includeMCVersionJar", false) propertyDefaultIfUnset("autoUpdateBuildScript", false) propertyDefaultIfUnset("modArchivesBaseName", project.modId) propertyDefaultIfUnsetWithEnvVar("developmentEnvironmentUserName", "Developer", "DEV_USERNAME") +propertyDefaultIfUnset("additionalJavaArguments", "") propertyDefaultIfUnset("generateGradleTokenClass", "") propertyDefaultIfUnset("gradleTokenModId", "") propertyDefaultIfUnset("gradleTokenModName", "") @@ -369,6 +370,10 @@ minecraft { '-Dlegacy.debugClassLoadingSave=true' ]) } + + if (additionalJavaArguments.size() != 0) { + extraRunJvmArguments.addAll(additionalJavaArguments.split(';')) + } } if (coreModClass) { diff --git a/gradle.properties b/gradle.properties index 3b3e38f..a4bffe6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -27,6 +27,11 @@ minecraftVersion = 1.12.2 # Alternatively this can be set with the 'DEV_USERNAME' environment variable. developmentEnvironmentUserName = Developer +# Additional arguments applied to the JVM when launching minecraft +# Syntax: -arg1=value1;arg2=value2;... +# Example value: -Dmixin.debug.verify=true;-XX:+UnlockExperimentalVMOptions +additionalJavaArguments = + # Enables using modern java syntax (up to version 17) via Jabel, while still targeting JVM 8. # See https://github.com/bsideup/jabel for details on how this works. # Using this requires that you use a Java 17 JDK for development. From f98a23f70f539bb14dc8649addae14c83e57efee Mon Sep 17 00:00:00 2001 From: Waiting Idly <25394029+WaitingIdly@users.noreply.github.com> Date: Tue, 14 May 2024 17:57:01 -0700 Subject: [PATCH 2/2] missing dash in comment --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index a4bffe6..3019942 100644 --- a/gradle.properties +++ b/gradle.properties @@ -28,7 +28,7 @@ minecraftVersion = 1.12.2 developmentEnvironmentUserName = Developer # Additional arguments applied to the JVM when launching minecraft -# Syntax: -arg1=value1;arg2=value2;... +# Syntax: -arg1=value1;-arg2=value2;... # Example value: -Dmixin.debug.verify=true;-XX:+UnlockExperimentalVMOptions additionalJavaArguments =