Vladimir Petko
07/30/2025, 11:37 PMephemient
07/31/2025, 12:38 AMVladimir Petko
07/31/2025, 5:16 AMMartin
07/31/2025, 7:25 AMMartin
07/31/2025, 7:25 AMMartin
07/31/2025, 7:28 AMephemient
07/31/2025, 7:30 AMephemient
07/31/2025, 7:30 AMJulien Plissonneau Duquène
07/31/2025, 8:02 AMOleg Nenashev
08/03/2025, 4:43 AMLouis Jacomet
08/04/2025, 7:27 AMVampire
08/04/2025, 10:43 AMJulien Plissonneau Duquène
08/04/2025, 2:47 PMHowever, I am curious as to why a Gradle plugin would be included in a Linux distro?About Gradle plugins in general: • they could be needed to build other packages, and the distribution policy for
main packages is to build them only with what is already packaged (this is to ensure that all the sources needed to build all the projects, including dependencies, are packaged and distributed)
• some users are working offline, without direct access to the Internet, and may not maintain internal maven repository mirrors (or may not be able to use them for all their pipelines and deployments)
This specific plugin is rather low priority but can still be useful as a package for some use casesLouis Jacomet
08/04/2025, 3:35 PMVladimir Petko
08/04/2025, 8:05 PMVampire
08/05/2025, 9:01 AMJulien Plissonneau Duquène
08/05/2025, 11:07 AMoverly strict FOSS definitionIt's not really a problem of FOSS compliance here, it's more a matter of conflicting goals/approaches between both projects, and also between Debian policies and usual practices in the Java world. Debian cares a lot about stability, reproducibility and (to some extent) bootstrappability. Gradle, not so much (it improved a bit, but the 4.x to 6.x era was really chaotic).
newer versions of GradleFI Vladimir and me are currently working on getting newer Gradle (and Kotlin) releases in Debian. What makes this complicated (and a lot of work) are the cross-dependencies between Gradle (which needs Kotlin to build), Kotlin (which needs Gradle and some IDEA libraries to build), and IDEA (which formerly needed IDEA and now needs Bazel, which we don't yet have in Debian, to build). And the set of dependencies all these need, which often need Gradle and Kotlin to build. And yes, in a few cases this means that we have to downgrade (or rewrite, or write) build scripts so they work with the "current" Gradle in Debian (still 4.4.1 right now) in order to transition to newer releases.
Vampire
08/05/2025, 11:20 AMIt's not really a problem of FOSS compliance here, it's more a matter of conflicting goals/approaches between both projects, and also between Debian policies and usual practices in the Java world. Debian cares a lot about stability, reproducibility and (to some extent) bootstrappability.Hm, ok, what I understood is, that Debian rejects to package anything that is not built with tools that are built by Debian already or are built from source. So even if the tools used to build a project is fully FOSS like Gradle, they reject to build something that is using Gradle >4.4.1 as Gradle 4.4.1 is not packaged in Debian and Gradle >4.4.1 is not packaged in Debian as newer version does not build with that Gradle 4.4.1 version but needs some intermediate Gradle build to build as Gradle extremely dog-feeds. So you would probably build newer Gradle versions in several steps to first build the version needed for the target version, and before the version to build that version, and before the version to build that version, ..... 🤷♂️
Vampire
08/05/2025, 11:21 AMJulien Plissonneau Duquène
08/05/2025, 11:33 AMbuild the version needed for the target version, and before the version to build that versionThis is a common strategy known as the "treasure trail" approach, but for Gradle 8 (and Kotlin 2) I'm planning something else (as we are catching up too many releases and that would be a lot of work): use Gradle to generate a plain old
Makefile that can be shipped in the source package and used to build the project on a system that doesn't yet have a newer Gradle installed.Vampire
08/05/2025, 11:41 AMJulien Plissonneau Duquène
08/05/2025, 11:53 AMmake and then we use that build to rebuild itself, and then the result of that rebuild to rebuild itself again, and then we check that the last two sets of produced binaries are identical.
We also plan (later though) to run the test suites, and minimize and document the functional divergences between our builds and the upstream binary distribution. Anyway Debian users are encouraged to report all bugs to Debian and let the package maintainers forward them to the upstream project when necessary.Vampire
08/05/2025, 12:00 PMAnyway Debian users are encouraged to report all bugs to Debian and let the package maintainers forward them to the upstream project when necessary.That only partially works though. Especially as Gradle (unless you change that in the Debian build) hints for every failed build to ask in the forums or community or report a bug. You don't want to know how often people ask "why is wrong" when the output clearly states that there is a compilation error in their own code. 😕 But actually from users using Gradle on Debian I anyway expect them to not use the shipped Gradle version except maybe to bootstrap a new build, because imho every build that does not use the Gradle wrapper has a build-bug. 😄
Vampire
08/05/2025, 12:11 PMJulien Plissonneau Duquène
08/05/2025, 12:14 PMunless you change that in the Debian buildThat's something I'm considering, yes. There are some frictions with other projects due to modifications that are specific to Debian, or even just shipping "outdated" versions ...
I anyway expect them to not use the shipped GradleIt's likely that most developers will stick to the usual practices of the Java scene and other Gradle projects. In Debian, we actually remove these wrappers (and other pre-built binaries) from source packages.
Vampire
08/05/2025, 12:21 PMephemient
08/05/2025, 1:44 PMJulien Plissonneau Duquène
08/05/2025, 3:29 PM4.4.1 package).Pratikshit singh
08/12/2025, 10:57 AMVampire
08/12/2025, 11:09 AM