File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change
1
+ import org.gradle.kotlin.dsl.support.*
1
2
import org.jetbrains.kotlin.gradle.dsl.*
2
3
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3
4
@@ -40,19 +41,22 @@ tasks.assemble {
40
41
dependsOn(tasks.jmhClasses)
41
42
}
42
43
43
- tasks.withType< KotlinCompile >().configureEach {
44
+ kotlin {
44
45
compilerOptions {
45
46
jvmTarget = JvmTarget .JVM_1_8
46
- }
47
-
48
- kotlinOptions {
49
47
if (overriddenLanguageVersion != null ) {
50
- languageVersion = overriddenLanguageVersion
51
- freeCompilerArgs + = " -Xsuppress-version-warnings"
48
+ languageVersion.set( KotlinVersion .fromVersion( overriddenLanguageVersion!! ))
49
+ freeCompilerArgs.add( " -Xsuppress-version-warnings" )
52
50
}
53
51
}
54
52
}
55
53
54
+ kotlin {
55
+ compilerOptions {
56
+ jvmTarget = JvmTarget .JVM_1_8
57
+ }
58
+ }
59
+
56
60
dependencies {
57
61
implementation(libs.jmhCore)
58
62
implementation(libs.guava)
You can’t perform that action at this time.
0 commit comments