TerraForged/build.gradle

15 lines
305 B
Groovy
Raw Normal View History

2020-01-16 09:56:57 +00:00
allprojects {
apply plugin: "java"
group = "com.terraforged"
2020-01-16 21:44:33 +00:00
version = "${version}${getBuildNumber()}"
2020-01-16 09:56:57 +00:00
}
2020-01-16 21:44:33 +00:00
jar.enabled(false)
2020-01-16 09:56:57 +00:00
static def getBuildNumber() {
def buildNumber = System.getenv("BUILD_NUMBER")
if (buildNumber == null) {
return ""
}
return "-${buildNumber}"
}