Open
Description
Spring requires the java.desktop
module to be present at Java runtimes only so that it can use the classes in the java.beans package.
Would be a good start for modernizing Spring apps on a post Java 9+ era of modules if Spring could at least work on slim Java runtimes produced with jlink
.
Other modules to consider adjusting the dependency are java.naming
, java.xml
, java.sql
, jdk.*
, java.instrument
, java.management
,java.rmi
, java.scripting
.
This is not about making Spring compatible with Java SE modules. This is only to allow developers to have smaller Java runtimes created with jlink.
In an ideal world, a Java runtime, created with the following jlink
command should be sufficient to run a Spring Boot Hello World with the Web dependency:
$ jlink \
--add-modules java.base,java.logging \
--strip-debug \
--no-man-pages \
--no-header-files \
--compress=2 \
--output /javaruntime