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

Add JPMS module-info.java #771

Open
kurtostfeld opened this issue Apr 13, 2023 · 0 comments
Open

Add JPMS module-info.java #771

kurtostfeld opened this issue Apr 13, 2023 · 0 comments

Comments

@kurtostfeld
Copy link

The newest version 5.0.0 of microprofile-metrics-api doesn't include a module-info.java descriptor, so it's not a proper JPMS module. I see that the published jar uses bytecode version 55.0 (Java 11), so the project doesn't support older versions of Java, so adding a module-info.java should be very simple

jlink packaging, and the Maven jlink plugin in particular, requires all transitive dependencies have module-info.java descriptors, so if I add microprofile-metrics-api to my projects, I get the jlink error:

[ERROR] Error: automatic module cannot be used with jlink: microprofile.metrics.api from file:///Users/admin/.m2/repository/org/eclipse/microprofile/metrics/microprofile-metrics-api/5.0.0/microprofile-metrics-api-5.0.0.jar

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

No branches or pull requests

1 participant