Skip to content

Commit ccf5c53

Browse files
committed
Use compilerOptions.
1 parent cf8fc4c commit ccf5c53

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
12
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
23

34
val mockkVersion = "1.14.4"
45
val logstashVersion = "8.1"
56
val testContainersVersion = "1.21.2"
67
val springDocVersion = "2.8.9"
78
val tokenValidationVersion = "5.0.30"
8-
val kotlinVersion = "2.2.0"
99

1010
repositories {
1111
mavenCentral()
1212
}
1313

1414
plugins {
15-
val kotlinVersion = "2.0.0"
15+
val kotlinVersion = "2.2.0"
1616
id("org.springframework.boot") version "3.5.3"
1717
kotlin("jvm") version kotlinVersion
1818
kotlin("plugin.spring") version kotlinVersion
@@ -57,9 +57,9 @@ dependencies {
5757
java.sourceCompatibility = JavaVersion.VERSION_21
5858

5959
tasks.withType<KotlinCompile> {
60-
kotlinOptions {
60+
compilerOptions {
61+
jvmTarget.set(JvmTarget.JVM_21)
6162
freeCompilerArgs = listOf("-Xjsr305=strict")
62-
jvmTarget = "21"
6363
}
6464
}
6565

0 commit comments

Comments
 (0)