From 144649a4570cffdc6426e20073002dae9b9fd5e5 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Wed, 17 Nov 2021 16:45:43 +0100 Subject: Upgrade to Kotlin 1.6.0 and JDK 17 --- build.gradle.kts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'build.gradle.kts') diff --git a/build.gradle.kts b/build.gradle.kts index ac27625f..42ba7593 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,13 +1,12 @@ import org.gradle.api.tasks.testing.logging.TestLogEvent plugins { - val kotlinVersion = "1.5.31" + val kotlinVersion = "1.6.0" kotlin("js") version kotlinVersion apply false kotlin("jvm") version kotlinVersion apply false kotlin("multiplatform") version kotlinVersion apply false kotlin("plugin.spring") version kotlinVersion apply false kotlin("plugin.serialization") version kotlinVersion apply false - id("org.jlleitschuh.gradle.ktlint") version "10.1.0" } allprojects { @@ -17,20 +16,14 @@ allprojects { } subprojects { - apply(plugin = "org.jlleitschuh.gradle.ktlint") - - ktlint { - disabledRules.set(setOf("no-wildcard-imports")) - } - tasks.withType { // JVM only - kotlinOptions.jvmTarget = "15" + kotlinOptions.jvmTarget = "17" } tasks.withType> { kotlinOptions.freeCompilerArgs += listOf( "-Xopt-in=kotlin.RequiresOptIn", - "-Xopt-in=kotlin.time.ExperimentalTime", + "-Xopt-in=kotlin.time.ExperimentalTime", // for measureTimedValue and withTimeout(Duration) "-Xopt-in=kotlinx.serialization.ExperimentalSerializationApi" ) } -- cgit