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

Merge pull request #32 in THFM/fm.touhou.touhoufm from bugfix/THFMA-19 to development

* commit 'a96bf343':
  [THFMA-19] Improve publishing
parents 2f2e766b a96bf343
...@@ -27,7 +27,7 @@ if(project.hasProperty("TouHouFM.signing") ...@@ -27,7 +27,7 @@ if(project.hasProperty("TouHouFM.signing")
ext { ext {
git = Grgit.open() git = Grgit.open()
gitVersionCode = git.tag.list().size()+11 // Add the base that is still on google gitVersionCode = git.tag.list().size()+11 // Add the base that is still on google
gitVersionName = "${git.describe()}" gitVersionName = git.describe({tags= true})
} }
repositories { repositories {
...@@ -113,4 +113,7 @@ if(file('release.gradle').exists()) { ...@@ -113,4 +113,7 @@ if(file('release.gradle').exists()) {
apply from: 'release.gradle' apply from: 'release.gradle'
} }
task printVersion() {
println("Version name: $gitVersionName")
println("Version code: $gitVersionCode")
}
...@@ -7,7 +7,7 @@ buildscript { ...@@ -7,7 +7,7 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.3.1' 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