We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4f55f9 commit 77fd1a3Copy full SHA for 77fd1a3
buildSrc/build.gradle.kts
@@ -1,5 +1,4 @@
1
-import org.jetbrains.kotlin.gradle.plugin.*
2
-import java.util.*
+import java.util.Properties
3
4
plugins {
5
`kotlin-dsl`
@@ -9,6 +8,10 @@ repositories {
9
8
mavenCentral()
10
}
11
+val kotlinVersion = file("../gradle.properties").inputStream().use {
12
+ Properties().apply { load(it) }
13
+}.getProperty("kotlinVersion") ?: throw IllegalStateException("Property 'kotlinVersion' must be defined in ../gradle.properties")
14
+
15
dependencies {
- implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30")
16
+ implementation(kotlin("gradle-plugin", kotlinVersion))
17
0 commit comments