Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions docs/plugin-development/kotlin-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ plugins {
id("java-gradle-plugin")
}

tasks.withType<KotlinCompile>().configureEach {
// But make sure your plugin code only uses 1.9 APIs
compilerOptions.apiVersion.set(KotlinVersion.KOTLIN_1_9)
}

kotlin {
compilerOption {
// Make sure your plugin code only uses 1.9 APIs
apiVersion.set(KotlinVersion.KOTLIN_1_9)
// Make sure your older Gradle versions can compile build.gradle.kts scripts against your plugin.
languageVersion.set(KotlinVersion.KOTLIN_1_9)
}
// Also make sure to depend on 1.9 kotlin-stdlib
// See also https://youtrack.jetbrains.com/issue/KT-53462
coreLibrariesVersion = "1.9.24"
Expand Down
Loading