前提Mod: Minecraft1.7.10 IC2Exp
Revisión | 4d3ac85b69d1b4444300ad91e3068667ac641f62 (tree) |
---|---|
Tiempo | 2015-08-06 22:31:19 |
Autor | MirrgieRiana |
Commiter | MirrgieRiana |
build.gradle: 自動的にソース中のバージョン番号を設定
@@ -45,6 +45,8 @@ | ||
45 | 45 | |
46 | 46 | } |
47 | 47 | |
48 | +tasks.sourceMainJava.replace('${version}', project.version); | |
49 | + | |
48 | 50 | processResources |
49 | 51 | { |
50 | 52 | // this will ensure that this task is redone when the versions change. |
@@ -21,7 +21,7 @@ | ||
21 | 21 | |
22 | 22 | public static final String MODID = "MirageCrops6"; |
23 | 23 | public static final String DOMAIN = MODID.toLowerCase(); |
24 | - public static final String VERSION = "1.0"; | |
24 | + public static final String VERSION = "${version}"; | |
25 | 25 | |
26 | 26 | public static CreativeTabs creativeTab = new CreativeTabs("mirageCrops6") { |
27 | 27 | @Override |