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 {
|
||||
version = "1.7.10-10.13.4.1558-1.7.10"
|
||||
runDir = "idea"
|
||||
|
||||
replaceIn "ModUtil.java"
|
||||
replace "mod_version", project.version.toString()
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
@ -46,7 +49,6 @@ dependencies {
|
|||
}
|
||||
|
||||
processResources {
|
||||
|
||||
inputs.property "version", project.version
|
||||
inputs.property "mcversion", project.minecraft.version
|
||||
|
||||
|
|
|
@ -16,13 +16,11 @@ import org.apache.logging.log4j.Logger;
|
|||
import java.util.Locale;
|
||||
|
||||
public class ModUtil {
|
||||
|
||||
public static final String VERSION = "1.7.10-r8";
|
||||
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