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