Skip to content

Commit

Permalink
Use Java 21 for kotlin plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
donbeave committed Oct 21, 2023
1 parent 23a4e97 commit 332c35a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kotlin-conventions/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
id("com.gradle.plugin-publish")
}

version = "0.4.0"
version = "0.5.0"

kotlin {
jvmToolchain(21)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ class KotlinPlugin : Plugin<Project> {
project.extensions.getByType(org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension::class.java)

kotlinExtension.apply {
jvmToolchain(19)
jvmToolchain(21)
}

project.tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "19"
jvmTarget = "20"
javaParameters = true
}
}
Expand Down

0 comments on commit 332c35a

Please sign in to comment.