Skip to content

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

Closed
laeubi wants to merge 2 commits intobndtools:masterfrom
laeubi:issue_5327_mr_jpms
Closed

[jpms] Fix calculation of module name with mult-release-jar dependencies#5360
laeubi wants to merge 2 commits intobndtools:masterfrom
laeubi:issue_5327_mr_jpms

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

laeubi added 2 commits August 25, 2022 19:45
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 <[email protected]>
@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