aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle6
1 files changed, 4 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle
index f197e1f7..00a026c3 100644
--- a/build.gradle
+++ b/build.gradle
@@ -2,8 +2,10 @@ import org.jetbrains.DependenciesVersionGetter
allprojects {
ext {
- final String buildNumber = System.getenv("BUILD_NUMBER")
- dokka_version = dokka_version_base + ( buildNumber == null || System.getenv("FORCE_SNAPSHOT") != null ? "-SNAPSHOT" : "-$buildNumber" )
+ if (!project.findProperty("dokka_version")) {
+ final String buildNumber = System.getenv("BUILD_NUMBER")
+ dokka_version = dokka_version_base + (buildNumber == null || System.getenv("FORCE_SNAPSHOT") != null ? "-SNAPSHOT" : "-$buildNumber")
+ }
}
if (project == rootProject) {