-
Notifications
You must be signed in to change notification settings - Fork 91
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
[MSHADE-406] Support multi release jars #202
base: master
Are you sure you want to change the base?
Conversation
After some more testing I think an upstream change in https://github.com/tcurdt/jdependency is needed. Simply put: all classes defined in https://github.com/nielsbasjes/maven-shade-plugin/tree/MSHADE-406-MultiReleaseJar/src/it/setup/multiReleaseJar under CC: @tcurdt |
@nielsbasjes Feel free to open an issue with a testcase. TBH I don't see anything being filtered yet. I guess the question is whether the |
@tcurdt I'll have a look if I can make it all work. The '-' is part of the |
True! Good find. |
@tcurdt First attempt Output seems like a step in the right direction:
|
Current status: A basic shade and a shade+minimize seem to work. |
Next hurdle: Almost all of the code assumes the name of the class file is the same as the package+class name. |
Current state is with tcurdt/jdependency#209 installed almost all tests (including several new tests that do shading, relocating and minimizing a multirelease jar) pass. Only a few around the MANIFEST.MF tests currently fail.
|
3e5e434
to
ba925eb
Compare
ba925eb
to
cda0b49
Compare
With tcurdt/jdependency#209 installed locally this now works on my machine. |
Looking good and merged. For a release it still needs fixes for Windows though it seems. https://ci.appveyor.com/project/tcurdt/jdependency/builds/48559371 |
NOTE At this point this is only testcases for https://issues.apache.org/jira/browse/MSHADE-406
I'm looking into if I can figure out how to fix this problem.
If i can't (which is quite likely) then the next person at least has these tests as a starting point.
What I concluded so far is that the (quite logical) key assumption (in the entire codebase) that a single class is in a single file ... is no longer valid.
So a single class in a Jar can be
Following this checklist to help us incorporate your
contribution quickly and easily:
for the change (usually before you start working on it). Trivial changes like typos do not
require a JIRA issue. Your pull request should address just this issue, without
pulling in other changes.
[MSHADE-XXX] - Fixes bug in ApproximateQuantiles
,where you replace
MSHADE-XXX
with the appropriate JIRA issue. Best practiceis to use the JIRA issue title in the pull request title and in the first line of the
commit message.
mvn clean verify
to make sure basic checks pass. A more thorough check willbe performed on your pull request automatically.
mvn -Prun-its clean verify
).If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.
I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004
In any other case, please file an Apache Individual Contributor License Agreement.