File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
kotlin-checks-test-sources Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change
1
+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
1
2
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
3
import org.sonarsource.kotlin.buildsrc.tasks.CreateKotlinGradleRuleStubsTask
3
4
import org.sonarsource.kotlin.buildsrc.tasks.CreateKotlinRuleStubsTask
@@ -125,7 +126,7 @@ subprojects {
125
126
}
126
127
127
128
tasks.withType<KotlinCompile >().all {
128
- kotlinOptions .jvmTarget = java.sourceCompatibility.toString()
129
+ compilerOptions .jvmTarget = JvmTarget .fromTarget( java.sourceCompatibility.toString() )
129
130
}
130
131
131
132
jacoco {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ dependencies {
24
24
sonarqube.isSkipProject = true
25
25
26
26
val compileKotlin: KotlinCompile by tasks
27
- compileKotlin.kotlinOptions {
27
+ compileKotlin.compilerOptions {
28
28
suppressWarnings = true
29
29
}
30
30
You can’t perform that action at this time.
0 commit comments