Sergey Shanshin | 4236a7e | 2021-02-03 22:32:37 +0300 | [diff] [blame] | 1 | import java.util.* |
Leonid Startsev | 920f589 | 2021-09-06 15:09:45 +0300 | [diff] [blame] | 2 | import java.io.FileInputStream |
Sergey Shanshin | 4236a7e | 2021-02-03 22:32:37 +0300 | [diff] [blame] | 3 | |
| 4 | plugins { |
| 5 | `kotlin-dsl` |
| 6 | } |
| 7 | |
| 8 | repositories { |
Leonid Startsev | 6a8dc86 | 2021-02-04 17:03:31 +0300 | [diff] [blame] | 9 | mavenCentral() |
Sergey Shanshin | 4236a7e | 2021-02-03 22:32:37 +0300 | [diff] [blame] | 10 | } |
| 11 | |
Leonid Startsev | 920f589 | 2021-09-06 15:09:45 +0300 | [diff] [blame] | 12 | val 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 Leeuw | cf6e41a | 2021-09-03 16:08:35 +0200 | [diff] [blame] | 18 | dependencies { |
Gerard de Leeuw | 8384772 | 2021-09-08 17:01:50 +0200 | [diff] [blame^] | 19 | implementation(kotlin("gradle-plugin", kotlinVersion)) |
Gerard de Leeuw | cf6e41a | 2021-09-03 16:08:35 +0200 | [diff] [blame] | 20 | } |
| 21 | |
Sergey Shanshin | 4236a7e | 2021-02-03 22:32:37 +0300 | [diff] [blame] | 22 | kotlinDslPluginOptions { |
| 23 | experimentalWarning.set(false) |
| 24 | } |