Update kotlin and enable a compiler mode for better lambdas

This commit is contained in:
Username404-59 2021-04-15 10:59:29 +02:00
parent e4d5230257
commit 86b1640c78
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ buildscript {
} }
plugins { plugins {
kotlin("jvm") version "1.5.0-M2" kotlin("jvm") version "1.5.0-RC"
id("com.github.johnrengelman.shadow") version "6.1.0" apply false id("com.github.johnrengelman.shadow") version "6.1.0" apply false
id("architectury-plugin") version "3.0-SNAPSHOT" id("architectury-plugin") version "3.0-SNAPSHOT"
id("forgified-fabric-loom") version "0.7.0-SNAPSHOT" apply false id("forgified-fabric-loom") version "0.7.0-SNAPSHOT" apply false
@ -89,7 +89,7 @@ allprojects {
} }
withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) { withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {
with(kotlinOptions) { with(kotlinOptions) {
freeCompilerArgs = listOf("-Xjvm-default=all") freeCompilerArgs = listOf("-Xjvm-default=all -Xlambdas=indy")
useIR = true useIR = true
jvmTarget = "1.8" jvmTarget = "1.8"
languageVersion = "1.5" languageVersion = "1.5"
@ -124,4 +124,4 @@ allprojects {
} }
} }
} }
} }