Good evening,

Building a functioning gradle using a pre-built Kotlin 2.0.21 is a bit more work than I expected.

Le 2025-03-07 18:39, Julien Plissonneau Duquène a écrit :
update the Kotlin package to 2.0.21 (renaming it kotlin2.0)

I've started to look around that release and test the upstream build which worked out of the box. Thinking about it the package name will rather be 'kotlin2' as new '2.x' releases are expected twice a year and there is no way we (I?) are going to simultaneously maintain several of these short-lived branches. Instead I'm planning to keep packaged in unstable the latest version that is known or tested to be compatible with Gradle (currently still 2.0.21 in Gradle's master branch), and eventually later (we'll see when we get there) the latest Kotlin version in experimental as kotlin2.x co-installable with kotlin2.

Then I got back to Gradle, removed the patches that downgraded its code to build with the FrankenKotlin, restored the build of the declarative DSL module, adjusted dependencies versions, and a few more little things to get it to build again, and in the process discovered that we now need to package a kotlinx.serialization library, and to find a way to ship an old release of kotlinx-metadata-jvm alongside the current API that was refactored and renamed with Kotlin 2.

The builds eventually succeeded, but then I was unable to use the generated binaries to rebuild gradle, as they failed with some suspicious compilation errors. Debugging these, it turned out that some classes normally compiled from generated Kotlin sources were missing, as well as their generated sources, so I now have to investigate that.

in time for Trixie

Well definitely not now, as new packages won't be allowed anymore starting with the soft freeze week 16, and with the typical NEW review and migration delays that means they should have been ready since probably some date in the past. Let's not miss this great opportunity to quote Douglas Adams: “I love deadlines. I love the whoosing noise they make as they go by.”

Cheers,

--
Julien Plissonneau Duquène

Reply via email to