Skip to content

Commit b2490a4

Browse files
committed
set jvm once
1 parent 44e0529 commit b2490a4

3 files changed

Lines changed: 4 additions & 13 deletions

File tree

buildSrc/build.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ dependencies {
2121
implementation(libs.plugin.outdated)
2222
}
2323

24-
tasks.withType<KotlinCompile> {
25-
kotlinOptions.jvmTarget = "11"
26-
}
27-
2824
gradlePlugin {
2925
plugins {
3026
create("VersionPlugin") {

buildSrc/src/main/kotlin/openapiprocessor.library.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ version = projectVersion
2020
println("version: $projectVersion")
2121

2222
java {
23-
toolchain {
24-
languageVersion.set(JavaLanguageVersion.of(libs.versions.build.jdk.get()))
25-
}
26-
2723
withJavadocJar ()
2824
withSourcesJar ()
2925
}
3026

27+
kotlin {
28+
jvmToolchain(libs.versions.build.jdk.get().toInt())
29+
}
30+
3131
repositories {
3232
mavenCentral()
3333
maven {

openapi-processor-core/build.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ tasks.named('compileTestGroovy') {
3434
classpath += files(compileTestKotlin.destinationDirectory)
3535
}
3636

37-
kotlin {
38-
jvmToolchain {
39-
languageVersion.set(JavaLanguageVersion.of(11))
40-
}
41-
}
4237

4338
tasks.named('compileKotlin') {
4439
dependsOn 'generateGrammarSource'

0 commit comments

Comments
 (0)