Tentative move to Java 25 by petebankhead · Pull Request #2004 · qupath/qupath

@petebankhead

This 'works', but is likely to require 1 big change and 2 small ones.

The big change is that removing '--bind-services' is probably stripping back the JRE too much, and we'll need to add in more modules or switch to a JDK other than Temurin so that we --bind-services can be reinstated.

The small changes:
- Use Kotlin 2.3 when available
- Use 2.0.0 for org.beryx.runtime when available

The license plugin should also be updated whenever possible, since it currently means we can only use jpackage if the build isn't parallelized.

@petebankhead

This was introduced in JavaFX 25, possibly with other `Region`-related changes that introduced a few regressions (or possibly because our original approach was flawed).

@petebankhead

@petebankhead

Mostly use `java.se`.
Add gradle support for `-Pbind-services` to build a runtime more like in previous QuPath releases, although it requires `jmods` to work.