Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rlagoue opened this issue Jun 24, 2024 · 2 comments

Comments

@rlagoue
Copy link

rlagoue commented Jun 24, 2024

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.

@olegz
Copy link
Contributor

olegz commented Jun 24, 2024

Could you please elaborate a bit?

@rlagoue
Copy link
Author

rlagoue commented Jul 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants