diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index cdb113be..1f07cb04 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -1,4 +1,4 @@ -val kotlinVersion = "2.0.10" +import java.util.* plugins { `kotlin-dsl` @@ -10,12 +10,17 @@ repositories { gradlePluginPortal() } +val props = Properties().apply { + file("../gradle.properties").inputStream().use { load(it) } +} + +fun version(target: String): String = props.getProperty("$target.version") + dependencies { - implementation(kotlin("gradle-plugin", kotlinVersion)) + implementation(kotlin("gradle-plugin", version("kotlin"))) implementation(kotlin("script-runtime")) implementation(kotlin("stdlib-jdk8")) } - kotlin { jvmToolchain(17) }