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

[jpms] Fix calculation of module name with mult-release-jar dependencies #5360

Closed
wants to merge 2 commits into from

Conversation

laeubi
Copy link
Contributor

@laeubi laeubi commented Aug 26, 2022

As described here:

currently the JPMS Plugin incorrectly calculates the module name of dependencies that are multi-release jars if they are java 8 and java9+ as in this case no module-info.class is present at the default location.

This is based on

so if one want to see the changes from this PR only, simply select the last commit.

This will fix #5327

FYI @rotty3000 @stbischof

This adds methods to the Jar class to read versioned content of a
multi-release jar for the following cases:

- get a resource or a map of resources for a given release version
- get a merged manifest according to the OSGi specification
- get module name/version for a given given release version
- list all contained release alternative versions

Beside this a unit-test is added to cover these new functions.

Signed-off-by: Christoph Läubrich <laeubi@laeubi-soft.de>
Fixes bndtools#5327

Signed-off-by: Christoph Läubrich <laeubi@laeubi-soft.de>
@pkriens
Copy link
Member

pkriens commented Feb 23, 2023

I will take over this PR

@pkriens pkriens closed this Feb 23, 2023
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

Successfully merging this pull request may close these issues.

Calculate moduleName for multi-release-jar-dependencies
2 participants