Skip to content

Commit

Permalink
Remove Gradle deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Aug 10, 2024
1 parent 1709128 commit 336c598
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
val kotlinVersion = "1.9.23"
val kotlinVersion = "2.0.10"

kotlin("jvm") version kotlinVersion
kotlin("plugin.allopen") version kotlinVersion
Expand Down Expand Up @@ -65,9 +67,11 @@ tasks.withType<Test> {
systemProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager")
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = JavaVersion.VERSION_17.toString()
kotlinOptions.javaParameters = true
kotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_17)
javaParameters.set(true)
}
}

/**
Expand Down

0 comments on commit 336c598

Please sign in to comment.