1
0
mirror of https://github.com/AllanWang/Frost-for-Facebook.git synced 2024-11-09 20:42:34 +01:00
Frost-for-Facebook/buildSrc-old/build.gradle.kts
2023-06-17 21:02:19 -07:00

38 lines
723 B
Plaintext

plugins {
`kotlin-dsl`
}
group = "com.pitchedapps"
repositories {
mavenCentral()
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 {
isRoot = true
it.absolutePath
}
},
"gradle.properties"
)
val kau = rootProps.useLines {
it.first { s -> s.startsWith("KAU=") }
}.substring(4).trim()
if (isRoot) {
println("Using kau $kau")
}
dependencies {
implementation("ca.allanwang.kau:gradle-plugin:$kau")
}