File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,10 +21,6 @@ dependencies {
2121 implementation(libs.plugin.outdated)
2222}
2323
24- tasks.withType<KotlinCompile > {
25- kotlinOptions.jvmTarget = " 11"
26- }
27-
2824gradlePlugin {
2925 plugins {
3026 create(" VersionPlugin" ) {
Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ version = projectVersion
2020println (" version: $projectVersion " )
2121
2222java {
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+
3131repositories {
3232 mavenCentral()
3333 maven {
Original file line number Diff line number Diff 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
4338tasks. named(' compileKotlin' ) {
4439 dependsOn ' generateGrammarSource'
You can’t perform that action at this time.
0 commit comments