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