mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
Merge pull request #27 from AtomSponge/master
Automatically replace mod version in ModUtil class
This commit is contained in:
commit
4985f671a0
2 changed files with 7 additions and 7 deletions
|
@ -25,6 +25,9 @@ archivesBaseName = "ActuallyAdditions"
|
||||||
minecraft {
|
minecraft {
|
||||||
version = "1.7.10-10.13.4.1558-1.7.10"
|
version = "1.7.10-10.13.4.1558-1.7.10"
|
||||||
runDir = "idea"
|
runDir = "idea"
|
||||||
|
|
||||||
|
replaceIn "ModUtil.java"
|
||||||
|
replace "mod_version", project.version.toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
@ -45,15 +48,14 @@ dependencies {
|
||||||
compile "codechicken:NotEnoughItems:1.7.10-1.0.5.110:dev"
|
compile "codechicken:NotEnoughItems:1.7.10-1.0.5.110:dev"
|
||||||
}
|
}
|
||||||
|
|
||||||
processResources{
|
processResources {
|
||||||
|
|
||||||
inputs.property "version", project.version
|
inputs.property "version", project.version
|
||||||
inputs.property "mcversion", project.minecraft.version
|
inputs.property "mcversion", project.minecraft.version
|
||||||
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
include 'mcmod.info'
|
include 'mcmod.info'
|
||||||
|
|
||||||
expand 'version':project.version, 'mcversion':project.minecraft.version
|
expand 'version': project.version, 'mcversion': project.minecraft.version
|
||||||
}
|
}
|
||||||
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
|
|
|
@ -15,14 +15,12 @@ import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
public class ModUtil{
|
public class ModUtil {
|
||||||
|
public static final String VERSION = "mod_version"; // Will be replaced by gradle
|
||||||
public static final String VERSION = "1.7.10-r8";
|
|
||||||
|
|
||||||
public static final String MOD_ID = "ActuallyAdditions";
|
public static final String MOD_ID = "ActuallyAdditions";
|
||||||
public static final String NAME = "Actually Additions";
|
public static final String NAME = "Actually Additions";
|
||||||
public static final String MOD_ID_LOWER = MOD_ID.toLowerCase(Locale.ROOT);
|
public static final String MOD_ID_LOWER = MOD_ID.toLowerCase(Locale.ROOT);
|
||||||
|
|
||||||
public static final Logger LOGGER = LogManager.getLogger(MOD_ID);
|
public static final Logger LOGGER = LogManager.getLogger(MOD_ID);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue