aboutsummaryrefslogtreecommitdiff
path: root/buildSrc
diff options
context:
space:
mode:
Diffstat (limited to 'buildSrc')
-rw-r--r--buildSrc/build.gradle.kts17
-rw-r--r--buildSrc/src/main/kotlin/Versions.kt2
2 files changed, 17 insertions, 2 deletions
diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts
index 0c518118..2f2f5d15 100644
--- a/buildSrc/build.gradle.kts
+++ b/buildSrc/build.gradle.kts
@@ -9,15 +9,28 @@ repositories {
maven("https://jitpack.io")
}
+var isRoot = false
// 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")
+ File(
+ project.rootDir.let {
+ if (it.name == "buildSrc") {
+ it.parent
+ } else {
+ isRoot = true
+ it.absolutePath
+ }
+ },
+ "gradle.properties"
+ )
val kau = rootProps.useLines {
it.first { s -> s.startsWith("KAU=") }
}.substring(4).trim()
-println("Using kau $kau")
+if (isRoot) {
+ println("Using kau $kau")
+}
dependencies {
implementation("ca.allanwang.kau:gradle-plugin:$kau")
diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt
index 7eaa9a4a..5d93dbfa 100644
--- a/buildSrc/src/main/kotlin/Versions.kt
+++ b/buildSrc/src/main/kotlin/Versions.kt
@@ -34,4 +34,6 @@ object Versions {
const val scaleImageView = "3.10.0"
// https://github.com/umano/AndroidSlidingUpPanel#importing-the-library
const val slidingPanel = "3.4.0"
+ // https://github.com/srs/gradle-node-plugin/releases
+ const val nodeGradle = "1.3.1"
} \ No newline at end of file