From 4d8649d948e171f9e2432ce09d630bea1d564b78 Mon Sep 17 00:00:00 2001 From: Adam <897017+aSemy@users.noreply.github.com> Date: Wed, 22 Feb 2023 10:27:36 +0100 Subject: [PATCH] update Kotlin version --- buildSrc/build.gradle.kts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index 5b096e1bf8..435fabb2fa 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -1,3 +1,5 @@ +import java.util.* + plugins { `kotlin-dsl` } @@ -6,13 +8,20 @@ repositories { gradlePluginPortal() } +// TODO define versions in Gradle Version Catalog +val properties = file("../gradle.properties").inputStream().use { + Properties().apply { load(it) } +} + +val kotlinVersion = properties["kotlin_version"] + dependencies { // Import Gradle Plugins that will be used in the buildSrc pre-compiled script plugins, and any `build.gradle.kts` // files in the project. // Use their Maven coordinates (plus versions), not Gradle plugin IDs! // This should be the only place that Gradle plugin versions are defined, so they are aligned across all build scripts - implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20") + implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion") implementation("com.github.jengelman.gradle.plugins:shadow:2.0.4") implementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.2") implementation("org.jetbrains.kotlinx:binary-compatibility-validator:0.12.1")