Skip to content

Commit d3ac494

Browse files
committed
chore: update compilerOptions example
1 parent 6ab0272 commit d3ac494

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/topics/gradle/gradle-compiler-options.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ show how to set this configuration up in both Kotlin and Groovy DSLs:
117117
```kotlin
118118
tasks.named("compileKotlin", org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask::class.java) {
119119
compilerOptions {
120-
apiVersion.set("1.8")
120+
apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0)
121121
}
122122
}
123123
```
@@ -128,7 +128,7 @@ tasks.named("compileKotlin", org.jetbrains.kotlin.gradle.tasks.KotlinCompilation
128128
```groovy
129129
tasks.named('compileKotlin', org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask.class) {
130130
compilerOptions {
131-
apiVersion.set("1.8")
131+
apiVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0)
132132
}
133133
}
134134
```

0 commit comments

Comments
 (0)