diff --git a/build.gradle b/build.gradle index 4c8ed3b..7af4e85 100644 --- a/build.gradle +++ b/build.gradle @@ -29,13 +29,37 @@ compileJava { sourceCompatibility = targetCompatibility = '1.8' } -version = "v417.56" +version = "v417.57" group = "gregtechmod" archivesBaseName = "gregtechmod" minecraft { version = "${mc_ver}-${forge_ver}-${mc_ver}" runDir = "eclipse" + replace("@VERSION@", getValidVersion()) + replace("public static volatile int VERSION = 417", + "public static volatile int VERSION = " + getValidVersion().replace('.', '')) + + includes.addAll([ + "GT_Mod.java", + "GregTech_API.java", + "BaseMetaTileEntity.java", + "BaseMetaPipeEntity.java", + "MetaTileEntity.java", + "MetaPipeEntity.java", + "GT_CircuitryBehavior.java", + "GT_CoverBehavior.java", + "GT_Config.java", + "GT_LanguageManager.java", + "GT_ModHandler.java", + "GT_OreDictUnificator.java", + "Recipe.java", + "GT_Utility.java", + "GT_RecipeRegistrator.java", + "Element.java", + "Materials.java", + "OrePrefixes.java" + ]) } repositories { @@ -94,7 +118,7 @@ dependencies { } processResources { - // this will ensure that this task is redone when the versions change. + // this will ensure that this task is redone when the versions change. inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version @@ -103,11 +127,18 @@ processResources { include 'mcmod.info' // replace version and mcversion - expand 'version':project.version, 'mcversion':project.minecraft.version + expand 'version': getValidVersion(), 'mcversion':project.minecraft.version } - + // copy everything else, thats not the mcmod.info from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } } + +def getValidVersion() { + def version = new StringBuilder(project.version.toString()) + version.deleteCharAt(0) + version.insert(1, '.') + return version.toString() +} \ No newline at end of file diff --git a/src/main/java/gregtechmod/GT_Mod.java b/src/main/java/gregtechmod/GT_Mod.java index 909961e..17c8b36 100644 --- a/src/main/java/gregtechmod/GT_Mod.java +++ b/src/main/java/gregtechmod/GT_Mod.java @@ -139,7 +139,7 @@ import cpw.mods.fml.relauncher.Side; /** * @author Gregorius Techneticies */ -@Mod(modid = "gregtech_addon", name="GregTech-Addon", version="4.16.40", useMetadata=false, dependencies="required-after:IC2; after:Railcraft; after:ThermalExpansion; after:ThermalExpansion|Transport; after:ThermalExpansion|Energy; after:ThermalExpansion|Factory; before:RedPowerCore; before:RedPowerBase; before:RedPowerMachine; before:RedPowerCompat; before:RedPowerWiring; before:RedPowerLogic; before:RedPowerLighting; before:RedPowerWorld; before:RedPowerControl;") +@Mod(modid = "gregtech_addon", name="GregTech-Addon", version="@VERSION@", useMetadata=false, dependencies="required-after:IC2; after:Railcraft; after:ThermalExpansion; after:ThermalExpansion|Transport; after:ThermalExpansion|Energy; after:ThermalExpansion|Factory; before:RedPowerCore; before:RedPowerBase; before:RedPowerMachine; before:RedPowerCompat; before:RedPowerWiring; before:RedPowerLogic; before:RedPowerLighting; before:RedPowerWorld; before:RedPowerControl;") public class GT_Mod implements IGT_Mod { @Instance public static GT_Mod instance; diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info index 0120133..a3a336e 100644 --- a/src/main/resources/mcmod.info +++ b/src/main/resources/mcmod.info @@ -3,7 +3,7 @@ "name": "GregTech-Addon", "description": "This Addon adds the awesome Technology of GregTech-Intergalactical to your World! Fusionreactors, Lightningrods and many other Technologies and convenient Recipes are added by this Addon, if you let them enabled in the allmighty Config, of course", "mcversion": "${mcversion}", - "version": "4.17.56", + "version": "${version}", "logoFile": "/assets/gregtech_addon/textures/LogoGTI_Long.png", "url": "https://github.com/Nukepowered/GregTech4", "updateUrl": "", @@ -11,5 +11,5 @@ "credits": "Alblaka and his Team for Industrialcraft, mistaqur for the original NEI-Plugin, Mr. Brain, TheSirusKing and matix for Textures, TheDarkDnKTv and sferatime for porting", "parent": "", "screenshots": [], - "dependencies": ["Industrialcraft"] + "dependencies": ["IC2"] }] \ No newline at end of file