Commit a96bf343 authored by Daniel Sonck's avatar Daniel Sonck
Browse files

[THFMA-19] Improve publishing

- Update grgit to allow unannotated tags
- add printVersion
parent 2f2e766b
......@@ -27,7 +27,7 @@ if(project.hasProperty("TouHouFM.signing")
ext {
git = Grgit.open()
gitVersionCode = git.tag.list().size()+11 // Add the base that is still on google
gitVersionName = "${git.describe()}"
gitVersionName = git.describe({tags= true})
}
repositories {
......@@ -113,4 +113,7 @@ if(file('release.gradle').exists()) {
apply from: 'release.gradle'
}
task printVersion() {
println("Version name: $gitVersionName")
println("Version code: $gitVersionCode")
}
......@@ -7,7 +7,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.1'
classpath 'org.ajoberstar:grgit:2.1.0'
classpath 'org.ajoberstar.grgit:grgit-gradle:3.0.0'
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment