-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
Flesh out support for shading third party libraries library and add example docs (500USD Bounty) #3815
Comments
We already have a dependency on
|
I think this is a broader topic than just |
The dependency going to be shaded should be declared as |
But |
hi team, Could you please help me understand if this use case falls under the scope of the bounty?: the spark-excel package is relying on assembly rule:
However, at runtime we still see the Would this bounty correctly handle the above scenario? If so I may be willing to add to the bounty. |
@neontty yes your use case is exactly that of the bounty. If you have a need for this would love your help implementing it! |
Excellent! This would greatly benefit the users of the crealytics spark-excel package. Let me discuss with my coworkers. |
From the maintainer Li Haoyi: I'm putting a 500USD bounty on this issue, payable by bank transfer on a merged PR implementing this.
We need to be able to depend on shaded third-party libraries, have the original library properly excluded from the runClasspath, and instead replaced by the shaded classfiles. Right now we can shade stuff in
assembly
usingAssemblyRule
s, but shading should also apply to:run
jar
(which should include the shaded dependency)publishLocal
/publishAll
(which should publish jars containing the shaded classes transitively and no dependency on the original and/or an exclusion),runClasspath
(e.g. if someone wants to use the classfiles in aJvm.runSubprocess
orJvm.runClassLoader
it should exclude the original and include the shaded classes)There's some design space here to explore.
Should have an example under
javalib/dependencies.adoc
for shading Java using jarjar,scalalib/dependencies.adoc
using https://github.com/eed3si9n/jarjar-abrams, maybe something for kotlinThe text was updated successfully, but these errors were encountered: