Skip to content

How to correctly handle split packages between org.hamcrest and org.hamcrest.library version 1.3.0? #5

Answered by HannesWell
merks asked this question in Q&A
Discussion options

You must be logged in to vote

Can the fact that org.hamcrest now exports org.hamcrest;library=split;version="1.3.0";mandatory:=library;... with this "split" stuff and imports org.hamcrest;version="[1.3,2)";library=split calso with this split stuff cause any problems? Is this correct? Is there any semantic significance to the name 'libraryor could this just befoobar`? I had trouble finding information about this...

With org.hamcrest;library=split you export the package org.hamcrest with an additional attribute library whose value is split.
Both the attribute name and its value can be chosen arbitrarily, but if you reference them in an Import-Package header they must match the specified names/values in the exports as …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@merks
Comment options

merks Aug 2, 2023
Collaborator Author

@HannesWell
Comment options

Answer selected by merks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants