mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-11-16 10:45:15 +01:00
fix branch name on travis
This commit is contained in:
parent
df6430a127
commit
6a80862f8a
@ -11,7 +11,8 @@ group = "com.github.creeper123123321.viafabric"
|
|||||||
val gitVersion: groovy.lang.Closure<String> by extra
|
val gitVersion: groovy.lang.Closure<String> by extra
|
||||||
val versionDetails: groovy.lang.Closure<com.palantir.gradle.gitversion.VersionDetails> by extra
|
val versionDetails: groovy.lang.Closure<com.palantir.gradle.gitversion.VersionDetails> by extra
|
||||||
version = "0.2.5-SNAPSHOT+" + try {
|
version = "0.2.5-SNAPSHOT+" + try {
|
||||||
gitVersion() + "-" + versionDetails().branchName
|
val travisBranch: String? = System.getenv("TRAVIS_BRANCH") // version details doesn't work on travis
|
||||||
|
gitVersion() + "-" + if (travisBranch.isNullOrBlank()) versionDetails().branchName else travisBranch
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
e.printStackTrace()
|
e.printStackTrace()
|
||||||
"unknown"
|
"unknown"
|
||||||
|
Loading…
Reference in New Issue
Block a user