From f833d4c1356cdddc1f1528caf703085bda7e34aa Mon Sep 17 00:00:00 2001 From: MCTian-mi <35869948+MCTian-mi@users.noreply.github.com> Date: Fri, 22 Aug 2025 20:44:19 +0800 Subject: [PATCH 1/2] chore: migrate gradle.properties to buildscript.properties --- gradle.properties => buildscript.properties | 47 ++++++++++++--------- 1 file changed, 26 insertions(+), 21 deletions(-) rename gradle.properties => buildscript.properties (91%) diff --git a/gradle.properties b/buildscript.properties similarity index 91% rename from gradle.properties rename to buildscript.properties index a8bb12f7c53..a9281dc2067 100644 --- a/gradle.properties +++ b/buildscript.properties @@ -1,8 +1,17 @@ +# +# The "buildscript.properties" file contains settings loaded and used by the "build.gradle" file. +# For settings loaded in all gradle files or custom settings, use "gradle.properties" instead. +# New properties should not be created in this file, use "gradle.properties" instead. +# + +# The name of your mod. Can be any sequence of characters. modName = GregTech -# This is a case-sensitive string to identify your mod. Convention is to use lower case. +# This is a case-sensitive string to identify your mod. +# Must be less than 64 characters and all lowercase. Convention is to only contain alphabetic characters. modId = gregtech +# Project package location. modGroup = gregtech # Version of your mod. @@ -30,7 +39,7 @@ 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= +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. @@ -41,7 +50,7 @@ enableModernJavaSyntax = true # 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. # Using this requires that you use a Java 17/Java 21 JDK for development. -enableJava17RunTasks=false +enableJava17RunTasks = false # Generate a class with String fields for the mod id, name and version named with the fields below generateGradleTokenClass = gregtech.GTInternalTags @@ -55,7 +64,7 @@ gradleTokenVersion = VERSION apiPackage = # If you want to keep your API code in src/api instead of src/main -useSrcApiPath=false +useSrcApiPath = false # Specify the configuration file for Forge's access transformers here. It must be placed into /src/main/resources/ # There can be multiple files in a comma-separated list. @@ -65,30 +74,30 @@ 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 +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. -mixinConfigRefmap= +mixinConfigRefmap = # Automatically generates a mixin config json if enabled, with the name mixins.modid.json generateMixinConfig = false # Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin! # Example value: coreModClass = asm.FMLPlugin + modGroup = com.myname.mymodid -> com.myname.mymodid.asm.FMLPlugin -coreModClass=mixins.GregTechMixinLoadingPlugin +coreModClass = mixins.GregTechMixinLoadingPlugin # If your project is only a consolidation of mixins or a core mod and does NOT contain a 'normal' mod (meaning that # there is no class annotated with @Mod) you want this to be true. When in doubt: leave it on false! -containsMixinsAndOrCoreModOnly=false +containsMixinsAndOrCoreModOnly = false # Enables Mixins even if this mod doesn't use them, useful if one of the dependencies uses mixins. -forceEnableMixins=false +forceEnableMixins = false # Outputs pre-transformed and post-transformed loaded classes to run/CLASSLOADER_TEMP. Can be used in combination with # diff to see exactly what your ASM or Mixins are changing in the target file. # Optionally can be specified with the 'CORE_MOD_DEBUG' env var. Will output a lot of files! -enableCoreModDebug=false +enableCoreModDebug = false # Adds CurseMaven, Modrinth Maven, BlameJared maven, and some more well-known 1.12.2 repositories -includeWellKnownRepositories=true +includeWellKnownRepositories = true # Adds JEI and TheOneProbe to your development environment. Adds them as 'implementation', meaning they will # be available at compiletime and runtime for your mod (in-game and in-code). @@ -99,7 +108,7 @@ includeCommonDevEnvMods = true # 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'. # Requires useMixins or forceEnableMixins to be true, as the mod uses mixins to function. -stripForgeRequirements=false +stripForgeRequirements = false # If enabled, you may use 'shadowCompile' for dependencies. They will be integrated in your jar. It is your @@ -160,6 +169,8 @@ generateDefaultChangelog = false # Prevent the source code from being published noPublishedSources = false + + # Publish to a custom maven location. Follows a few rules: # Group ID can be set with the 'ARTIFACT_GROUP_ID' environment variable, default to 'project.group' # Artifact ID can be set with the 'ARTIFACT_ID' environment variable, default to 'project.name' @@ -167,10 +178,11 @@ noPublishedSources = false # For maven credentials: # Username is set with the 'MAVEN_USER' environment variable, default to "NONE" # Password is set with the 'MAVEN_PASSWORD' environment variable, default to "NONE" -customMavenPublishUrl= https://maven.gtceu.com +customMavenPublishUrl = https://maven.gtceu.com + # The group for maven artifacts. Defaults to the 'project.modGroup' until the last '.' (if any). # So 'mymod' becomes 'mymod' and 'com.myname.mymodid' 'becomes com.myname' -mavenArtifactGroup= +mavenArtifactGroup = # Enable spotless checks # Enforces code formatting on your source code @@ -188,10 +200,3 @@ enableJUnit = true # Alternatively, you can set the 'DEPLOYMENT_DEBUG' environment variable. deploymentDebug = false - -# Gradle Settings -# Effectively applies the '--stacktrace' flag by default -org.gradle.logging.stacktrace = all -# Sets default memory used for gradle commands. Can be overridden by user or command line properties. -# This is required to provide enough memory for the Minecraft decompilation process. -org.gradle.jvmargs = -Xmx3G From 5621beaa82a607e94ca3d17b4add891fa1e2be42 Mon Sep 17 00:00:00 2001 From: MCTian-mi <35869948+MCTian-mi@users.noreply.github.com> Date: Fri, 22 Aug 2025 20:44:45 +0800 Subject: [PATCH 2/2] chore: add back gradle.properties --- gradle.properties | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 gradle.properties diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 00000000000..94ca87a7c98 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,13 @@ +# +# The "gradle.properties" file contains settings loaded by all gradle files. +# For the "build.gradle" file, all properties are stored in the separate and dedicated file "buildscript.properties". +# Properties can be created via any sequence of ASCII characters followed by an equal sign to set the value. +# + + +# Gradle Settings +# Effectively applies the '--stacktrace' flag by default +org.gradle.logging.stacktrace = all +# Sets default memory used for gradle commands. Can be overridden by user or command line properties. +# This is required to provide enough memory for the Minecraft decompilation process. +org.gradle.jvmargs = -Xmx3G