File tree Expand file tree Collapse file tree 5 files changed +10
-3
lines changed Expand file tree Collapse file tree 5 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 11import  org.gradle.kotlin.dsl.`kotlin-dsl` 
2+ import  org.jetbrains.kotlin.gradle.tasks.KotlinCompile 
23
34plugins {
45 `kotlin- dsl`
Original file line number Diff line number Diff line change @@ -32,6 +32,12 @@ dependencies {
3232 }
3333}
3434
35+ tasks.withType<ScalaCompile > {
36+  sourceSets {
37+  targetCompatibility =  Versions .jvmTarget
38+  }
39+ }
40+ 
3541val  scalaMainSources =  sourceSets.main.get().scala.sourceDirectories
3642
3743val  preprocessMain by tasks.creating(JcpTask ::class ) {
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ tasks.compileTestKotlin {
138138
139139tasks.withType<KotlinCompile > {
140140 kotlinOptions {
141-  jvmTarget =  " 11 " 
141+  jvmTarget =  Versions .jvmTarget 
142142 }
143143}
144144
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ tasks.compileTestKotlin {
137137
138138tasks.withType<KotlinCompile > {
139139 kotlinOptions {
140-  jvmTarget =  " 11 " 
140+  jvmTarget =  Versions .jvmTarget 
141141 }
142142}
143143
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ dependencies {
4242
4343tasks.withType<KotlinCompile > {
4444 kotlinOptions {
45-  jvmTarget =  " 11 " 
45+  jvmTarget =  Versions .jvmTarget 
4646 }
4747}
4848
                         You can’t perform that action at this time. 
           
                  
0 commit comments