Skip to content

Commit 77fd1a3

Browse files
committed
Use kotlin version of root project
1 parent c4f55f9 commit 77fd1a3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

buildSrc/build.gradle.kts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import org.jetbrains.kotlin.gradle.plugin.*
2-
import java.util.*
1+
import java.util.Properties
32

43
plugins {
54
`kotlin-dsl`
@@ -9,6 +8,10 @@ repositories {
98
mavenCentral()
109
}
1110

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+
1215
dependencies {
13-
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30")
16+
implementation(kotlin("gradle-plugin", kotlinVersion))
1417
}

0 commit comments

Comments
 (0)