forked from TAIGA/TAIGA
moved version to gradle
This commit is contained in:
34
build.gradle
34
build.gradle
@@ -42,6 +42,8 @@ minecraft {
|
|||||||
// simply re-run your setup task after changing the mappings to update your workspace.
|
// simply re-run your setup task after changing the mappings to update your workspace.
|
||||||
mappings = "snapshot_20160428"
|
mappings = "snapshot_20160428"
|
||||||
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
|
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
|
||||||
|
|
||||||
|
replace "@VERSION@", project.version
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@@ -53,22 +55,22 @@ dependencies {
|
|||||||
// compile "tconstruct:TConstruct:1.9-2.2.2.jenkins159:deobf"
|
// compile "tconstruct:TConstruct:1.9-2.2.2.jenkins159:deobf"
|
||||||
}
|
}
|
||||||
|
|
||||||
processResources
|
//noinspection GroovyAssignabilityCheck
|
||||||
{
|
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 "version", project.version
|
||||||
inputs.property "mcversion", project.minecraft.version
|
inputs.property "mcversion", project.minecraft.version
|
||||||
|
|
||||||
// replace stuff in mcmod.info, nothing else
|
// replace stuff in mcmod.info, nothing else
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
include 'mcmod.info'
|
include 'mcmod.info'
|
||||||
|
|
||||||
// replace version and mcversion
|
// replace version and mcversion
|
||||||
expand 'version': project.version, 'mcversion': project.minecraft.version
|
expand 'version': project.version, 'mcversion': project.minecraft.version
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy everything else, thats not the mcmod.info
|
// copy everything else, thats not the mcmod.info
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
exclude 'mcmod.info'
|
exclude 'mcmod.info'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -27,7 +27,7 @@ import proxy.ServerProxy;
|
|||||||
public class ZCompression {
|
public class ZCompression {
|
||||||
|
|
||||||
static final String MODID = "zcompression";
|
static final String MODID = "zcompression";
|
||||||
static final String VERSION = "0.3b";
|
static final String VERSION = "@VERSION@";
|
||||||
// Items
|
// Items
|
||||||
public static ItemSlagironIngot slagironIngot = new ItemSlagironIngot();
|
public static ItemSlagironIngot slagironIngot = new ItemSlagironIngot();
|
||||||
public static ItemLignite lignite = new ItemLignite();
|
public static ItemLignite lignite = new ItemLignite();
|
||||||
|
Reference in New Issue
Block a user