aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Petrenko <eugene.petrenko@gmail.com>2018-09-11 18:30:14 +0300
committerEugene Petrenko <eugene.petrenko@gmail.com>2018-09-11 18:30:14 +0300
commitd5173fa676f9495f16beb7c4afea022a265365c2 (patch)
tree6d890b64456409c7cd1a0a3d65cc68a532f54b65
parent4a63b2dc455c4cdd0c1807994d7114de262f8ebc (diff)
downloaddokka-d5173fa676f9495f16beb7c4afea022a265365c2.tar.gz
dokka-d5173fa676f9495f16beb7c4afea022a265365c2.tar.bz2
dokka-d5173fa676f9495f16beb7c4afea022a265365c2.zip
use environment variable for kotlinx-cli
-rw-r--r--settings.gradle6
1 files changed, 4 insertions, 2 deletions
diff --git a/settings.gradle b/settings.gradle
index 8868ef1f..f806eccd 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -11,9 +11,11 @@ include 'core',
'runners:gradle-integration-tests'
-if (new File(rootProject.projectDir, "../kotlinx-cli").isDirectory()) {
+final File kotlinx_cli = new File(rootProject.projectDir, System.getenv("KOTLINX_CLI") ?: '../kotlinx-cli')
+
+if (kotlinx_cli.isDirectory()) {
println "Using kotlinx-cli from source!"
- includeBuild('../kotlinx-cli') {
+ includeBuild(kotlinx_cli) {
dependencySubstitution {
substitute module("org.jetbrains.kotlinx:cli:0.1") with project(':')
}