summaryrefslogtreecommitdiff
path: root/buildSrc/build.gradle.kts
blob: 994e674d1c47de4ef6cad3f1ed71baf1dc8586f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import java.util.*
import java.io.FileInputStream

plugins {
    `kotlin-dsl`
}

repositories {
    mavenCentral()
}

val kotlinVersion = FileInputStream(file("../gradle.properties")).use { propFile ->
    val ver = Properties().apply { load(propFile) }["kotlin.version"]
    require(ver is String) { "kotlin.version must be string in ../gradle.properties, got $ver instead" }
    ver
}

dependencies {
    implementation(kotlin("gradle-plugin", kotlinVersion))
}

kotlinDslPluginOptions {
    experimentalWarning.set(false)
}