Skip to content

Commit f833d4c

Browse files
committed
chore: migrate gradle.properties to buildscript.properties
1 parent 8bc2ba5 commit f833d4c

File tree

1 file changed

+26
-21
lines changed

1 file changed

+26
-21
lines changed
Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1+
#
2+
# The "buildscript.properties" file contains settings loaded and used by the "build.gradle" file.
3+
# For settings loaded in all gradle files or custom settings, use "gradle.properties" instead.
4+
# New properties should not be created in this file, use "gradle.properties" instead.
5+
#
6+
7+
# The name of your mod. Can be any sequence of characters.
18
modName = GregTech
29

3-
# This is a case-sensitive string to identify your mod. Convention is to use lower case.
10+
# This is a case-sensitive string to identify your mod.
11+
# Must be less than 64 characters and all lowercase. Convention is to only contain alphabetic characters.
412
modId = gregtech
513

14+
# Project package location.
615
modGroup = gregtech
716

817
# Version of your mod.
@@ -30,7 +39,7 @@ developmentEnvironmentUserName = Developer
3039
# Additional arguments applied to the JVM when launching minecraft
3140
# Syntax: -arg1=value1;-arg2=value2;...
3241
# Example value: -Dmixin.debug.verify=true;-XX:+UnlockExperimentalVMOptions
33-
additionalJavaArguments=
42+
additionalJavaArguments =
3443

3544
# Enables using modern java syntax (up to version 17) via Jabel, while still targeting JVM 8.
3645
# See https://github.com/bsideup/jabel for details on how this works.
@@ -41,7 +50,7 @@ enableModernJavaSyntax = true
4150
# This is primarily used to test if your mod is compatible with platforms running
4251
# Minecraft 1.12.2 on modern versions of Java and LWJGL, and assist in fixing any problems with it.
4352
# Using this requires that you use a Java 17/Java 21 JDK for development.
44-
enableJava17RunTasks=false
53+
enableJava17RunTasks = false
4554

4655
# Generate a class with String fields for the mod id, name and version named with the fields below
4756
generateGradleTokenClass = gregtech.GTInternalTags
@@ -55,7 +64,7 @@ gradleTokenVersion = VERSION
5564
apiPackage =
5665

5766
# If you want to keep your API code in src/api instead of src/main
58-
useSrcApiPath=false
67+
useSrcApiPath = false
5968

6069
# Specify the configuration file for Forge's access transformers here. It must be placed into /src/main/resources/
6170
# There can be multiple files in a comma-separated list.
@@ -65,30 +74,30 @@ accessTransformersFile = gregtech_at.cfg
6574
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
6675
usesMixins = true
6776
# Mixin Provider to use. Primarily changed when needing to use a different version.
68-
mixinProviderSpec=zone.rong:mixinbooter:10.6
77+
mixinProviderSpec = zone.rong:mixinbooter:10.6
6978
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
7079
mixinsPackage = mixins
7180
# Location of the mixin config refmap. If left, blank, defaults to "mixins.${modId}.refmap.json". Target file must have the "json" extension.
72-
mixinConfigRefmap=
81+
mixinConfigRefmap =
7382
# Automatically generates a mixin config json if enabled, with the name mixins.modid.json
7483
generateMixinConfig = false
7584
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
7685
# Example value: coreModClass = asm.FMLPlugin + modGroup = com.myname.mymodid -> com.myname.mymodid.asm.FMLPlugin
77-
coreModClass=mixins.GregTechMixinLoadingPlugin
86+
coreModClass = mixins.GregTechMixinLoadingPlugin
7887
# If your project is only a consolidation of mixins or a core mod and does NOT contain a 'normal' mod (meaning that
7988
# there is no class annotated with @Mod) you want this to be true. When in doubt: leave it on false!
80-
containsMixinsAndOrCoreModOnly=false
89+
containsMixinsAndOrCoreModOnly = false
8190

8291
# Enables Mixins even if this mod doesn't use them, useful if one of the dependencies uses mixins.
83-
forceEnableMixins=false
92+
forceEnableMixins = false
8493

8594
# Outputs pre-transformed and post-transformed loaded classes to run/CLASSLOADER_TEMP. Can be used in combination with
8695
# diff to see exactly what your ASM or Mixins are changing in the target file.
8796
# Optionally can be specified with the 'CORE_MOD_DEBUG' env var. Will output a lot of files!
88-
enableCoreModDebug=false
97+
enableCoreModDebug = false
8998

9099
# Adds CurseMaven, Modrinth Maven, BlameJared maven, and some more well-known 1.12.2 repositories
91-
includeWellKnownRepositories=true
100+
includeWellKnownRepositories = true
92101

93102
# Adds JEI and TheOneProbe to your development environment. Adds them as 'implementation', meaning they will
94103
# be available at compiletime and runtime for your mod (in-game and in-code).
@@ -99,7 +108,7 @@ includeCommonDevEnvMods = true
99108
# and cannot launch with the forge version required, enable this to strip the forge version requirements from that mod.
100109
# This will add 'strip-latest-forge-requirements' as 'runtimeOnlyNonPublishable'.
101110
# Requires useMixins or forceEnableMixins to be true, as the mod uses mixins to function.
102-
stripForgeRequirements=false
111+
stripForgeRequirements = false
103112

104113

105114
# If enabled, you may use 'shadowCompile' for dependencies. They will be integrated in your jar. It is your
@@ -160,17 +169,20 @@ generateDefaultChangelog = false
160169

161170
# Prevent the source code from being published
162171
noPublishedSources = false
172+
173+
163174
# Publish to a custom maven location. Follows a few rules:
164175
# Group ID can be set with the 'ARTIFACT_GROUP_ID' environment variable, default to 'project.group'
165176
# Artifact ID can be set with the 'ARTIFACT_ID' environment variable, default to 'project.name'
166177
# Version can be set with the 'RELEASE_VERSION' environment variable, default to 'modVersion'
167178
# For maven credentials:
168179
# Username is set with the 'MAVEN_USER' environment variable, default to "NONE"
169180
# Password is set with the 'MAVEN_PASSWORD' environment variable, default to "NONE"
170-
customMavenPublishUrl= https://maven.gtceu.com
181+
customMavenPublishUrl = https://maven.gtceu.com
182+
171183
# The group for maven artifacts. Defaults to the 'project.modGroup' until the last '.' (if any).
172184
# So 'mymod' becomes 'mymod' and 'com.myname.mymodid' 'becomes com.myname'
173-
mavenArtifactGroup=
185+
mavenArtifactGroup =
174186

175187
# Enable spotless checks
176188
# Enforces code formatting on your source code
@@ -188,10 +200,3 @@ enableJUnit = true
188200
# Alternatively, you can set the 'DEPLOYMENT_DEBUG' environment variable.
189201
deploymentDebug = false
190202

191-
192-
# Gradle Settings
193-
# Effectively applies the '--stacktrace' flag by default
194-
org.gradle.logging.stacktrace = all
195-
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
196-
# This is required to provide enough memory for the Minecraft decompilation process.
197-
org.gradle.jvmargs = -Xmx3G

0 commit comments

Comments
 (0)