diff --git a/gradle.properties b/gradle.properties index 5e76708..553bbba 100644 --- a/gradle.properties +++ b/gradle.properties @@ -21,16 +21,19 @@ forgeVersion = 10.13.4.1614 # Do you need to test how your custom blocks interacts with a player that is not the owner? -> leave name empty developmentEnvironmentUserName = Developer -# Define a source file of your project with: +# Generate a class with String fields for the mod id, name, version and group name named with the fields below +generateGradleTokenClass = codechicken.core.asm.Tags +gradleTokenModId = MODID +gradleTokenModName = MODNAME +gradleTokenVersion = VERSION +gradleTokenGroupName = GROUPNAME +# [DEPRECATED] +# Multiple source files can be defined here by providing a comma-seperated list: Class1.java,Class2.java,Class3.java # public static final String VERSION = "GRADLETOKEN_VERSION"; # The string's content will be replaced with your mod's version when compiled. You should use this to specify your mod's # version in @Mod([...], version = VERSION, [...]) # Leave these properties empty to skip individual token replacements -replaceGradleTokenInFile = CodeChickenCoreModContainer.java -gradleTokenModId = GRADLETOKEN_MODID -gradleTokenModName = GRADLETOKEN_MODNAME -gradleTokenVersion = GRADLETOKEN_VERSION -gradleTokenGroupName = +replaceGradleTokenInFile = # In case your mod provides an API for other mods to implement you may declare its package here. Otherwise, you can # leave this property empty. diff --git a/src/main/java/codechicken/core/asm/CodeChickenCoreModContainer.java b/src/main/java/codechicken/core/asm/CodeChickenCoreModContainer.java index 8728f66..ee640f5 100644 --- a/src/main/java/codechicken/core/asm/CodeChickenCoreModContainer.java +++ b/src/main/java/codechicken/core/asm/CodeChickenCoreModContainer.java @@ -39,9 +39,9 @@ public class CodeChickenCoreModContainer extends DummyModContainer { private static ModMetadata getModMetadata() { final ModMetadata modMetadata = new ModMetadata(); - modMetadata.name = "GRADLETOKEN_MODNAME"; - modMetadata.modId = "GRADLETOKEN_MODID"; - modMetadata.version = "GRADLETOKEN_VERSION"; + modMetadata.name = "CodeChicken Core"; + modMetadata.modId = "CodeChickenCore"; + modMetadata.version = Tags.VERSION; return modMetadata; } diff --git a/src/main/java/codechicken/core/launch/CodeChickenCorePlugin.java b/src/main/java/codechicken/core/launch/CodeChickenCorePlugin.java index d26b188..3247450 100644 --- a/src/main/java/codechicken/core/launch/CodeChickenCorePlugin.java +++ b/src/main/java/codechicken/core/launch/CodeChickenCorePlugin.java @@ -39,7 +39,7 @@ public class CodeChickenCorePlugin implements IFMLLoadingPlugin, IFMLCallHook { public static final String mcVersion = "[1.7.10]"; @Deprecated - public static final String version = "GRADLETOKEN_VERSION"; + public static final String version = Tags.VERSION; public static File minecraftDir; public static String currentMcVersion;