From 8a03391c3847dd40ceebdc7c71c4d06cdc1a0475 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Mon, 3 May 2021 14:03:50 +0200 Subject: [PATCH] Add a kotlin_stdlib_version property to gradle.properties --- build.gradle.kts | 4 ++-- gradle.properties | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 42dc90d..36c3eed 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -93,7 +93,7 @@ allprojects { apply(plugin = "java") apply(plugin = "architectury-plugin") dependencies { - implementation(kotlin("stdlib-jdk8", "1.4.30")) + implementation(kotlin("stdlib-jdk8", rootProject.property("kotlin_stdlib_version").toString() + ".0")) } java { targetCompatibility = JavaVersion.VERSION_1_8 @@ -119,7 +119,7 @@ allprojects { freeCompilerArgs = listOf("-Xjvm-default=all", "-Xlambdas=indy") jvmTarget = "1.8" languageVersion = "1.5" - apiVersion = "1.4" + apiVersion = rootProject.property("kotlin_stdlib_version").toString() } } withType(JavaCompile::class) { diff --git a/gradle.properties b/gradle.properties index 7e65c71..c889eeb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,6 +9,7 @@ org.gradle.vfs.watch=true minecraft=1.16.5 forge_version=36.1 +kotlin_stdlib_version=1.4 fabric_loader_version=0.11.3 fabric_resource_loader_version=0.2.5+059ea8667c fabric_rendering_api_version=1.1.2+346247d77c