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

Fix shading of Docker Java and its transitive dependencies #1144

Merged
merged 2 commits into from
Dec 20, 2022

Conversation

Sineaggi
Copy link
Contributor

@Sineaggi Sineaggi commented Dec 19, 2022

A quick look through the packaged jar shows that com.github.dockerjava is still in the root directory. If we relocate this package, other plugins pulling in that library should work.

I've also excluded slf4j from the shaded configuration since that will be pulled in from other plugins, but replaced by gradle at runtime.

The producer #954 (comment) in Intellij shows two classes loaded in the same location.
Screen Shot 2022-12-19 at 4 31 20 PM

@Sineaggi
Copy link
Contributor Author

It looked like there were still packages from javax.activation and jna that were missing. I would hope that at least some of these could be considered stable enough to exclude by default.

@bmuschko
Copy link
Owner

I looked at the commit history and it looks like the Docker Java package itself was never relocated. I was 100% convinced it was the case but it doesn't seem to have been the case.

@bmuschko bmuschko added this to the v9.1.0 milestone Dec 20, 2022
@bmuschko bmuschko merged commit 1ce9ec0 into bmuschko:master Dec 20, 2022
@Sineaggi Sineaggi deleted the fix-shading branch December 20, 2022 19:01
@bmuschko bmuschko changed the title Fix shading Fix shading of Docker Java and its transitive dependencies Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants