aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Petrenko <eugene.petrenko@gmail.com>2018-09-11 18:46:17 +0300
committerEugene Petrenko <eugene.petrenko@gmail.com>2018-09-11 18:46:17 +0300
commitb3913cdb97f1f2863c9e4001e0aacdca857f7ba5 (patch)
tree79fd1a76e05e56eb01adc45483f1f0322d81b2e8
parentd5173fa676f9495f16beb7c4afea022a265365c2 (diff)
downloaddokka-b3913cdb97f1f2863c9e4001e0aacdca857f7ba5.tar.gz
dokka-b3913cdb97f1f2863c9e4001e0aacdca857f7ba5.tar.bz2
dokka-b3913cdb97f1f2863c9e4001e0aacdca857f7ba5.zip
include TeamCity BUILD_NUMBER into build number
-rw-r--r--build.gradle4
-rw-r--r--gradle.properties2
2 files changed, 5 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index 7ea6dd9c..d93d8601 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,6 +1,10 @@
import org.jetbrains.DependenciesVersionGetter
allprojects {
+ ext {
+ dokka_version = dokka_version_base + (System.getenv("BUILD_NUMBER") ?: "-SNAPSHOT")
+ }
+
group 'org.jetbrains.dokka'
version dokka_version
diff --git a/gradle.properties b/gradle.properties
index 20953140..e2f738af 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,4 +1,4 @@
-dokka_version=0.9.18-SNAPSHOT
+dokka_version_base=0.9.18
dokka_publication_channel=dokka
#Kotlin compiler and plugin