aboutsummaryrefslogtreecommitdiff
path: root/buildSrc/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'buildSrc/build.gradle.kts')
-rw-r--r--buildSrc/build.gradle.kts12
1 files changed, 10 insertions, 2 deletions
diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts
index 50603069..0c518118 100644
--- a/buildSrc/build.gradle.kts
+++ b/buildSrc/build.gradle.kts
@@ -9,8 +9,16 @@ repositories {
maven("https://jitpack.io")
}
-val KAU: String = "db3b6c0"
+// Currently can't read properties from root project
+// Reading it manually since it's simple
+val rootProps =
+ File(project.rootDir.let { if (it.name == "buildSrc") it.parent else it.absolutePath }, "gradle.properties")
+val kau = rootProps.useLines {
+ it.first { s -> s.startsWith("KAU=") }
+}.substring(4).trim()
+
+println("Using kau $kau")
dependencies {
- implementation("ca.allanwang.kau:gradle-plugin:$KAU")
+ implementation("ca.allanwang.kau:gradle-plugin:$kau")
} \ No newline at end of file