spring-cloud-stream icon indicating copy to clipboard operation
spring-cloud-stream copied to clipboard

Missing entry "Automatic-Module-Name" in manifest in library "org.springframework.cloud:spring-cloud-stream"

Open rlagoue opened this issue 1 year ago • 2 comments

Currently it is not possible to use "org.springframework.cloud:spring-cloud-stream" in a Jigsaw-enabled application, because the manifest entry making it an "Automatic Module" is missing.

rlagoue avatar Jun 24 '24 04:06 rlagoue

Could you please elaborate a bit?

olegz avatar Jun 24 '24 06:06 olegz

Hi Oleg

Accoding to this link, the spring framework jars allow for deployment to JDK 9’s module path.

A note about modules: Spring’s framework jars allow for deployment to JDK 9’s module path ("Jigsaw"). For use in Jigsaw-enabled applications, the Spring Framework 5 jars come with "Automatic-Module-Name" manifest entries which define stable language-level module names ("spring.core", "spring.context", etc.) independent from jar artifact names (the jars follow the same naming pattern with "-" instead of ".", e.g. "spring-core" and "spring-context"). Of course, Spring’s framework jars keep working fine on the classpath on both JDK 8 and 9+.

I just found out that this is not the case for the jar "spring-cloud-stream" . The field "Autmatic Module" is namely missing inside the manifest file of this jar-file.

It just hindered me from adoption of jigsaw inside a spring boot application.

Best Regards

rlagoue avatar Jul 02 '24 08:07 rlagoue