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 compatibility with Gradle 2.5. Fixes #147 #148

Merged
merged 1 commit into from Jul 17, 2015
Merged

Fix compatibility with Gradle 2.5. Fixes #147 #148

merged 1 commit into from Jul 17, 2015

Conversation

stephan-gh
Copy link
Contributor

Wanted to upgrade my project to Gradle 2.5 today but noticed shadow was broken - because I wanted to continue the upgrade today I was looking into a fix for the problem. Basically Gradle 2.5 bundles only Maven 3 so the plexus-utils are no longer relocated in a different package.

This changes the imports to the new (original) packages and adds a dependency on the original plexus-utils which should (hopefully) maintain compatibility with older Gradle versions as well. While I have tested this successfully on Gradle 2.5, as well as some older Gradle versions like 2.4 and 1.12 I'm not completely sure if this will always work for older Gradle versions.

The fix is probably not perfect, so if you've started already or see a better way feel free to close this, just thought it may help you to fix it a little bit faster. :)

Fixes #147

johnrengelman added a commit that referenced this pull request Jul 17, 2015
Fix compatibility with Gradle 2.5. Fixes #147
@johnrengelman johnrengelman merged commit 77450fd into johnrengelman:master Jul 17, 2015
@johnrengelman
Copy link
Owner

Thanks for the PR. I'll try and get a new release out shortly.

@stephan-gh stephan-gh deleted the gradle-2.5 branch July 17, 2015 18:51
@stephan-gh
Copy link
Contributor Author

Thanks!

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.

with grade 2.5: shadowJar task fails, Caused by: java.lang.NoClassDefFoundError
2 participants