diff --git a/build.gradle b/build.gradle index 892add04600..4aaa89797bc 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,4 @@ -//version: 1723428048 +//version: 1743737794 /* * DO NOT CHANGE THIS FILE! * Also, you may replace this file at any time if there is an update available. @@ -80,6 +80,7 @@ propertyDefaultIfUnset("includeWellKnownRepositories", true) propertyDefaultIfUnset("includeCommonDevEnvMods", true) propertyDefaultIfUnset("stripForgeRequirements", false) propertyDefaultIfUnset("noPublishedSources", false) +propertyDefaultIfUnset("mixinProviderSpec", "zone.rong:mixinbooter:10.6") propertyDefaultIfUnset("forceEnableMixins", false) propertyDefaultIfUnset("mixinConfigRefmap", "mixins.${project.modId}.refmap.json") propertyDefaultIfUnsetWithEnvVar("enableCoreModDebug", false, "CORE_MOD_DEBUG") @@ -518,7 +519,6 @@ configurations { testRuntimeClasspath.extendsFrom(runtimeOnlyNonPublishable) } -String mixinProviderSpec = 'zone.rong:mixinbooter:9.1' dependencies { if (usesMixins.toBoolean()) { annotationProcessor 'org.ow2.asm:asm-debug-all:5.2' @@ -1009,7 +1009,7 @@ abstract class RunHotswappableMinecraftTask extends RunMinecraftTask { if (project.usesMixins.toBoolean()) { this.extraJvmArgs.addAll(project.provider(() -> { - def mixinCfg = project.configurations.detachedConfiguration(project.dependencies.create(project.mixinProviderSpec)) + def mixinCfg = project.configurations.detachedConfiguration(project.dependencies.create(mixinProviderSpec)) mixinCfg.canBeConsumed = false mixinCfg.canBeResolved = true mixinCfg.transitive = false diff --git a/gradle.properties b/gradle.properties index 7520aad5201..ee7c6d85b9b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,6 +26,7 @@ minecraftVersion = 1.12.2 # Do you need to test how your custom blocks interacts with a player that is not the owner? -> leave name empty # 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 @@ -35,6 +36,7 @@ additionalJavaArguments= # See https://github.com/bsideup/jabel for details on how this works. # Using this requires that you use a Java 17 JDK for development. enableModernJavaSyntax = true + # Enables runClient/runServer tasks for Java 17 and Java 21 using LWJGL3ify. # This is primarily used to test if your mod is compatible with platforms running # Minecraft 1.12.2 on modern versions of Java and LWJGL, and assist in fixing any problems with it. @@ -62,6 +64,8 @@ accessTransformersFile = gregtech_at.cfg # Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled! usesMixins = true +# Mixin Provider to use. Primarily changed when needing to use a different version. +mixinProviderSpec=zone.rong:mixinbooter:10.6 # Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail! mixinsPackage = mixins # Location of the mixin config refmap. If left, blank, defaults to "mixins.${modId}.refmap.json". Target file must have the "json" extension. @@ -90,6 +94,7 @@ includeWellKnownRepositories=true # be available at compiletime and runtime for your mod (in-game and in-code). # Overrides the above setting to be always true, as these repositories are needed to fetch the mods includeCommonDevEnvMods = true + # Some mods require a specific forge version to launch in. When you need to use one of those mods as a dependency, # and cannot launch with the forge version required, enable this to strip the forge version requirements from that mod. # This will add 'strip-latest-forge-requirements' as 'runtimeOnlyNonPublishable'.