gradle reboot -- 2025W12 update

Julien Plissonneau Duquène <[email protected]> Fri, 21 Mar 2025 18:58:34 +0100
Newsgroups gmane.linux.debian.devel.java
Message-ID <[email protected]>
Good evening,

Starting next week the updates are going to be about "kotlin 2 in 
Debian" for a while.

Le 2025-03-14 19:49, Julien Plissonneau Duquène a écrit :
> some classes normally compiled from generated Kotlin sources were 
> missing

This was caused by the removal of the `qdox` dependency, which was an 
error as it is already available and usable in Debian. After restoring 
it and adding two Kotlin JARs to the list of downloads it was possible 
to rebuild Gradle with itself and a reduced set of pre-built 
dependencies.

I then spent some time updating and reviewing the list of dependencies 
which is now 189 lines long after I added all those that are dropped 
because they are not currently packaged (52 new lines). Most of them are 
only needed for code quality checks or automated tests and there are a 
few ones that I believe to not be used at all. Only two of them are 
making my builds seriously crippled compared to the upstream release:
- the configuration-cache-report plugin aka problems API which is used 
deep in the configuration cache code (currently I have to completely 
disable the configuration cache for Gradle to work)
- a tomlj library that is necessary to read version catalogs.

The other removed features are far less critical:
- AWS S3 support (resource/object storage)
- GCS support (resource/object storage)
- the entire documentation generation
- a plugin for JVM toolchain management
- wrapper JAR minification
- Scala Zinc compiler support.

Preparing the work on Kotlin 2 I've decided to fix the build of 1.3.31 
with the default JDK rather than making it depend on legacy JDKs, the 
reason being that these JDKs are not in stable or testing (which I think 
is something that should be renegotiated) and that the package has to be 
(re)buildable with what is (or will be) in stable. So far I managed to 
patch the compiler in a rather clean way and most of the differences in 
generated code are gone but not all. This is rather slow as a full 
diffoscope run takes a bit less than 5 hours on my machine. I'm also 
planning to fix the current CVE, and got the other closed as it was not 
applicable to this version.

Expect to see a few new branches including `kotlin2-wip` on my fork of 
the package repository fairly soon.

Cheers,