generated from tilera/1710mod
chore: get version from tag
This commit is contained in:
parent
244ca15f40
commit
39d0bcd8e0
16
build.gradle
16
build.gradle
|
@ -24,7 +24,21 @@ apply from: './gradle/scripts/mixins.gradle'
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
|
||||||
version = "1.8.3"
|
def getVersionName = { ->
|
||||||
|
def stdout = new ByteArrayOutputStream()
|
||||||
|
exec {
|
||||||
|
commandLine 'git', 'describe', '--tags'
|
||||||
|
standardOutput = stdout
|
||||||
|
}
|
||||||
|
String tagVersion = stdout.toString().trim()
|
||||||
|
if (tagVersion.charAt(0) == 'v') {
|
||||||
|
return tagVersion.substring(1);
|
||||||
|
} else {
|
||||||
|
return tagVersion;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
version = getVersionName()
|
||||||
group= "dev.tilera"
|
group= "dev.tilera"
|
||||||
archivesBaseName = "auracore"
|
archivesBaseName = "auracore"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue