mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-16 10:55:01 -04:00
use kotlin K2
I know, using beta versions is not ideal.
This commit is contained in:
parent
8d27cf69d7
commit
d870067a00
@ -26,7 +26,7 @@ import java.nio.charset.StandardCharsets
|
|||||||
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("jvm") version "1.8.20"
|
kotlin("jvm") version "1.9.0-Beta"
|
||||||
`jvm-test-suite`
|
`jvm-test-suite`
|
||||||
application
|
application
|
||||||
id("org.ajoberstar.grgit.service") version "5.2.0"
|
id("org.ajoberstar.grgit.service") version "5.2.0"
|
||||||
@ -145,7 +145,7 @@ testing {
|
|||||||
dependencies {
|
dependencies {
|
||||||
implementation(project())
|
implementation(project())
|
||||||
implementation("de.bixilon:kutil:$kutilVersion")
|
implementation("de.bixilon:kutil:$kutilVersion")
|
||||||
implementation("org.jetbrains.kotlin:kotlin-test:1.8.20")
|
implementation("org.jetbrains.kotlin:kotlin-test:1.9.0-Beta")
|
||||||
}
|
}
|
||||||
|
|
||||||
targets {
|
targets {
|
||||||
@ -371,7 +371,7 @@ dependencies {
|
|||||||
lwjgl("stb")
|
lwjgl("stb")
|
||||||
|
|
||||||
// kotlin
|
// kotlin
|
||||||
implementation(kotlin("reflect"))
|
implementation(kotlin("reflect", "1.9.0-Beta"))
|
||||||
|
|
||||||
|
|
||||||
// platform specific
|
// platform specific
|
||||||
@ -462,7 +462,7 @@ java {
|
|||||||
|
|
||||||
tasks.withType<KotlinCompile> {
|
tasks.withType<KotlinCompile> {
|
||||||
kotlinOptions.jvmTarget = "11"
|
kotlinOptions.jvmTarget = "11"
|
||||||
// kotlinOptions.useK2 = true // ToDo: Really? boosts the performance a lot, see https://youtrack.jetbrains.com/issue/KT-55806/K2-Property-must-be-initialized-or-be-abstract and https://youtrack.jetbrains.com/issue/KT-55804/K2-Non-nullable-generic-marked-as-nullable-even-if-assertNonNull
|
kotlinOptions.languageVersion = "2.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<JavaCompile> {
|
tasks.withType<JavaCompile> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user