Added MC version to mod version
This commit is contained in:
parent
85b66dd883
commit
1d50db3bda
1 changed files with 8 additions and 8 deletions
16
build.gradle
16
build.gradle
|
@ -35,14 +35,20 @@ dependencies {
|
|||
compileOnly 'io.github.opencubicchunks:cubicchunks:1.12.2-0.0.819.0-SNAPSHOT'
|
||||
}
|
||||
|
||||
// Minecraft, MCP, Forge, and Java versions
|
||||
sourceCompatibility = targetCompatibility = "1.8"
|
||||
ext.mcversion = "1.12.2"
|
||||
ext.forgeversion = "14.23.2.2623"
|
||||
String mcpversion = "snapshot_20180227"
|
||||
|
||||
// Mod version
|
||||
version = ext.modversion = "3.0.9"
|
||||
version = "3.0.9"
|
||||
boolean isBeta = false
|
||||
group = "org.dimdev.dimdoors"
|
||||
archivesBaseName = "DimensionalDoors"
|
||||
|
||||
// Build number
|
||||
String fullVersion = version
|
||||
String fullVersion = ext.mcversion + "-" + version
|
||||
if (System.getenv("TRAVIS_BUILD_NUMBER") != null) {
|
||||
fullVersion += "+${System.getenv("TRAVIS_BUILD_NUMBER")}"
|
||||
} else {
|
||||
|
@ -53,12 +59,6 @@ if (isBeta) {
|
|||
}
|
||||
String jarVersion = fullVersion.replace("+", "-") // Github/Travis doesn't seem to support + in filenames
|
||||
|
||||
// Minecraft, MCP, Forge, and Java versions
|
||||
sourceCompatibility = targetCompatibility = "1.8"
|
||||
ext.mcversion = "1.12.2"
|
||||
ext.forgeversion = "14.23.2.2623"
|
||||
String mcpversion = "snapshot_20180227"
|
||||
|
||||
// Configuration
|
||||
minecraft {
|
||||
version = "$mcversion-$forgeversion"
|
||||
|
|
Loading…
Reference in a new issue