@@ -3,18 +3,20 @@ import com.adarshr.gradle.testlogger.theme.ThemeType.MOCHA_PARALLEL
3
3
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
4
4
import io.codearte.gradle.nexus.NexusStagingExtension
5
5
import org.gradle.api.JavaVersion.VERSION_17
6
+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
7
+ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0
6
8
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
7
9
import org.jmailen.gradle.kotlinter.KotlinterExtension
8
10
import kotlin.text.RegexOption.IGNORE_CASE
9
11
10
12
plugins {
11
13
kotlin(" jvm" ) apply false
12
14
id(" io.codearte.nexus-staging" ) version " 0.30.0"
13
- id(" org.jmailen.kotlinter" ) version " 4.4.0 " apply false
15
+ id(" org.jmailen.kotlinter" ) version " 4.4.1 " apply false
14
16
id(" com.adarshr.test-logger" ) version " 4.0.0" apply false
15
17
id(" com.github.ben-manes.versions" ) version " 0.51.0"
16
18
id(" org.jetbrains.dokka" )
17
- id(" org.jetbrains.kotlinx.kover" ) version " 0.8.1 "
19
+ id(" org.jetbrains.kotlinx.kover" ) version " 0.8.3 "
18
20
}
19
21
20
22
repositories {
@@ -53,9 +55,9 @@ subprojects {
53
55
}
54
56
55
57
tasks.withType<KotlinCompile > {
56
- kotlinOptions {
57
- jvmTarget = VERSION_17 .toString( )
58
- languageVersion = " 1.9 "
58
+ compilerOptions {
59
+ jvmTarget.set( JVM_17 )
60
+ languageVersion.set( KOTLIN_2_0 )
59
61
javaParameters = true
60
62
freeCompilerArgs = listOf (" -Xjvm-default=all" )
61
63
allWarningsAsErrors = true
0 commit comments