Add a kotlin_stdlib_version property to gradle.properties

This commit is contained in:
Username404-59 2021-05-03 14:03:50 +02:00
parent ea2c5c458b
commit 8a03391c38
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
2 changed files with 3 additions and 2 deletions

View File

@ -93,7 +93,7 @@ allprojects {
apply(plugin = "java") apply(plugin = "java")
apply(plugin = "architectury-plugin") apply(plugin = "architectury-plugin")
dependencies { dependencies {
implementation(kotlin("stdlib-jdk8", "1.4.30")) implementation(kotlin("stdlib-jdk8", rootProject.property("kotlin_stdlib_version").toString() + ".0"))
} }
java { java {
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8
@ -119,7 +119,7 @@ allprojects {
freeCompilerArgs = listOf("-Xjvm-default=all", "-Xlambdas=indy") freeCompilerArgs = listOf("-Xjvm-default=all", "-Xlambdas=indy")
jvmTarget = "1.8" jvmTarget = "1.8"
languageVersion = "1.5" languageVersion = "1.5"
apiVersion = "1.4" apiVersion = rootProject.property("kotlin_stdlib_version").toString()
} }
} }
withType(JavaCompile::class) { withType(JavaCompile::class) {

View File

@ -9,6 +9,7 @@ org.gradle.vfs.watch=true
minecraft=1.16.5 minecraft=1.16.5
forge_version=36.1 forge_version=36.1
kotlin_stdlib_version=1.4
fabric_loader_version=0.11.3 fabric_loader_version=0.11.3
fabric_resource_loader_version=0.2.5+059ea8667c fabric_resource_loader_version=0.2.5+059ea8667c
fabric_rendering_api_version=1.1.2+346247d77c fabric_rendering_api_version=1.1.2+346247d77c