Skip to content

Commit 0dc32ec

Browse files
Abduqodiri Qurbonzodaqurbonzoda
Abduqodiri Qurbonzoda
authored andcommitted
Remove redundant java plugin application in kotlin-kts example project
1 parent cd920c2 commit 0dc32ec

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

examples/kotlin-kts/build.gradle.kts

+2-12
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
import kotlinx.benchmark.gradle.*
44
import org.jetbrains.kotlin.allopen.gradle.*
5-
import org.jetbrains.kotlin.gradle.tasks.*
65

76

87
plugins {
9-
java
108
kotlin("jvm")
119
kotlin("plugin.allopen") version "2.0.20"
1210
id("org.jetbrains.kotlinx.benchmark")
@@ -25,16 +23,8 @@ dependencies {
2523
implementation(project(":kotlinx-benchmark-runtime"))
2624
}
2725

28-
tasks.withType<JavaCompile> {
29-
sourceCompatibility = "1.8"
30-
targetCompatibility = "1.8"
31-
}
32-
33-
34-
tasks.withType<KotlinCompile> {
35-
kotlinOptions {
36-
jvmTarget = "1.8"
37-
}
26+
kotlin {
27+
jvmToolchain(8)
3828
}
3929

4030
benchmark {

0 commit comments

Comments
 (0)