2019-06-07 20:52:55 +02:00
|
|
|
plugins {
|
|
|
|
`kotlin-dsl`
|
|
|
|
}
|
|
|
|
|
2019-06-07 20:55:59 +02:00
|
|
|
group = "com.pitchedapps"
|
|
|
|
|
2019-06-07 20:52:55 +02:00
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
maven("https://jitpack.io")
|
|
|
|
}
|
|
|
|
|
2019-06-08 08:10:02 +02:00
|
|
|
// 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")
|
2019-06-07 20:52:55 +02:00
|
|
|
|
|
|
|
dependencies {
|
2019-06-08 08:10:02 +02:00
|
|
|
implementation("ca.allanwang.kau:gradle-plugin:$kau")
|
2019-06-07 20:52:55 +02:00
|
|
|
}
|