[PR #1232] [MERGED] Bump Kotlin to 2.2.20, minimum Kotlin to 2.1 #955

Closed
opened 2025-12-30 01:27:56 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/apple/pkl/pull/1232
Author: @bioball
Created: 10/9/2025
Status: Merged
Merged: 10/9/2025
Merged by: @bioball

Base: mainHead: bump-kotlin


📝 Commits (1)

  • d59c18a Bump Kotlin to 2.2.20, minimum Kotlin to 2.1

📊 Changes

21 files changed (+608 additions, -349 deletions)

View changed files

📝 bench/gradle.lockfile (+35 -20)
📝 buildSrc/src/main/kotlin/pklKotlinLibrary.gradle.kts (+2 -0)
📝 docs/gradle.lockfile (+35 -20)
📝 docs/modules/release-notes/pages/0.30.adoc (+3 -1)
📝 gradle/libs.versions.toml (+1 -1)
📝 pkl-cli/gradle.lockfile (+35 -20)
📝 pkl-codegen-java/gradle.lockfile (+35 -20)
📝 pkl-codegen-kotlin/gradle.lockfile (+37 -22)
📝 pkl-commons-cli/gradle.lockfile (+35 -20)
📝 pkl-commons-test/gradle.lockfile (+35 -20)
📝 pkl-commons/gradle.lockfile (+35 -20)
📝 pkl-config-java/gradle.lockfile (+35 -20)
📝 pkl-config-kotlin/gradle.lockfile (+35 -20)
📝 pkl-core/gradle.lockfile (+35 -20)
📝 pkl-doc/gradle.lockfile (+36 -21)
📝 pkl-executor/gradle.lockfile (+35 -20)
📝 pkl-formatter/gradle.lockfile (+35 -20)
📝 pkl-gradle/gradle.lockfile (+35 -20)
📝 pkl-parser/gradle.lockfile (+35 -20)
📝 pkl-server/gradle.lockfile (+35 -20)

...and 1 more files

📄 Description

The current version of the kotlin-gradle plugin is not compatible with Gradle 9.1, causing error java.lang.NoSuchMethodError: 'org.gradle.api.Project org.gradle.api.artifacts.ProjectDependency.getDependencyProject()'.
This happens when running a GenerateMavenPom task (e.g. ./gradlew pkl-codegen-kotlin:generatePomFileForLibraryPublication).

Also, the Kotlin 2.0 language target is deprecated as of Kotlin 2.2.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/apple/pkl/pull/1232 **Author:** [@bioball](https://github.com/bioball) **Created:** 10/9/2025 **Status:** ✅ Merged **Merged:** 10/9/2025 **Merged by:** [@bioball](https://github.com/bioball) **Base:** `main` ← **Head:** `bump-kotlin` --- ### 📝 Commits (1) - [`d59c18a`](https://github.com/apple/pkl/commit/d59c18ace159defc8dec4dd3e9bff9e6692aea2a) Bump Kotlin to 2.2.20, minimum Kotlin to 2.1 ### 📊 Changes **21 files changed** (+608 additions, -349 deletions) <details> <summary>View changed files</summary> 📝 `bench/gradle.lockfile` (+35 -20) 📝 `buildSrc/src/main/kotlin/pklKotlinLibrary.gradle.kts` (+2 -0) 📝 `docs/gradle.lockfile` (+35 -20) 📝 `docs/modules/release-notes/pages/0.30.adoc` (+3 -1) 📝 `gradle/libs.versions.toml` (+1 -1) 📝 `pkl-cli/gradle.lockfile` (+35 -20) 📝 `pkl-codegen-java/gradle.lockfile` (+35 -20) 📝 `pkl-codegen-kotlin/gradle.lockfile` (+37 -22) 📝 `pkl-commons-cli/gradle.lockfile` (+35 -20) 📝 `pkl-commons-test/gradle.lockfile` (+35 -20) 📝 `pkl-commons/gradle.lockfile` (+35 -20) 📝 `pkl-config-java/gradle.lockfile` (+35 -20) 📝 `pkl-config-kotlin/gradle.lockfile` (+35 -20) 📝 `pkl-core/gradle.lockfile` (+35 -20) 📝 `pkl-doc/gradle.lockfile` (+36 -21) 📝 `pkl-executor/gradle.lockfile` (+35 -20) 📝 `pkl-formatter/gradle.lockfile` (+35 -20) 📝 `pkl-gradle/gradle.lockfile` (+35 -20) 📝 `pkl-parser/gradle.lockfile` (+35 -20) 📝 `pkl-server/gradle.lockfile` (+35 -20) _...and 1 more files_ </details> ### 📄 Description The current version of the kotlin-gradle plugin is not compatible with Gradle 9.1, causing error `java.lang.NoSuchMethodError: 'org.gradle.api.Project org.gradle.api.artifacts.ProjectDependency.getDependencyProject()'`. This happens when running a `GenerateMavenPom` task (e.g. `./gradlew pkl-codegen-kotlin:generatePomFileForLibraryPublication`). Also, the Kotlin 2.0 language target is deprecated as of Kotlin 2.2. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 01:27:56 +01:00
adam closed this issue 2025-12-30 01:27:56 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#955