blob: 994e674d1c47de4ef6cad3f1ed71baf1dc8586f7 [file] [log] [blame]
Sergey Shanshin4236a7e2021-02-03 22:32:37 +03001import java.util.*
Leonid Startsev920f5892021-09-06 15:09:45 +03002import java.io.FileInputStream
Sergey Shanshin4236a7e2021-02-03 22:32:37 +03003
4plugins {
5 `kotlin-dsl`
6}
7
8repositories {
Leonid Startsev6a8dc862021-02-04 17:03:31 +03009 mavenCentral()
Sergey Shanshin4236a7e2021-02-03 22:32:37 +030010}
11
Leonid Startsev920f5892021-09-06 15:09:45 +030012val kotlinVersion = FileInputStream(file("../gradle.properties")).use { propFile ->
13 val ver = Properties().apply { load(propFile) }["kotlin.version"]
14 require(ver is String) { "kotlin.version must be string in ../gradle.properties, got $ver instead" }
15 ver
16}
17
Gerard de Leeuwcf6e41a2021-09-03 16:08:35 +020018dependencies {
Gerard de Leeuw83847722021-09-08 17:01:50 +020019 implementation(kotlin("gradle-plugin", kotlinVersion))
Gerard de Leeuwcf6e41a2021-09-03 16:08:35 +020020}
21
Sergey Shanshin4236a7e2021-02-03 22:32:37 +030022kotlinDslPluginOptions {
23 experimentalWarning.set(false)
24}