Bump version 4.17.57
- Urgent dupe fix - Added some automatization to buildscript
This commit is contained in:
parent
ff7e477f47
commit
a74a138fab
3 changed files with 38 additions and 7 deletions
39
build.gradle
39
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()
|
||||
}
|
|
@ -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;
|
||||
|
|
|
@ -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"]
|
||||
}]
|
Loading…
Reference in a new issue