On 3/29/23, debian-u...@howorth.org.uk <debian-u...@howorth.org.uk> wrote: > As others have pointed out, apt-get doesn't work like that. It seems to > me that the gradle package is wrong in having java as a dependency, > since the need can be resolved at run-time rather than install time, > and by a dynamic link. So bug report the gradle package, not apt-get.
Well, debian folks say it is gradle folks the ones that didn't get it right and vice versa. As you could see from their installation page, the one and only installation prerequisite is a java version after the reflection API was introduced. I would guess everyone who works from a Debian install and need to install gradle is because they are using java already. There have been 7 releases till JDK 19. Maybe debian packages should have various installation candidates based on the JDK one has installed or during configuration of the package if no java install is reachable it should look for it in the filesystem and if it is still not found tell user and abort the installation. lbrtchx