-
Notifications
You must be signed in to change notification settings - Fork 403
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
Prevent shadow jar from automatically being added as publish artifact #783
Comments
I have my publication configured like so: the<PublishingExtension>().publications.register("mavenJava", MavenPublication::class.java) {
it.from(components.asMap["java"])
} |
I've been able to successfully remove the shadow jars from the maven publications by manually removing them from the artifacts of the publication. But I cannot remove the task dependency. |
@mgroth0 Did you find any solution for this? Ran into the same thing today, would like to prevent the shadow jar from being published but cannot find a mechanism for doing so. |
Looks like this incantation does the trick - #586 (comment) . This ticket can likely be closed as a duplicate of #586, which is still requesting that the publication of the shadow jar not be enabled by default. |
@rjrudin Thanks for following up on this. I no longer apply the shadow plugin in any of my modules that are publishing to a maven repo. This has been my workaround all this time, which is not ideal. Looking at my old comment, I think the main problem for me ended up being the task dependency. I will close this in favor of #586. Thanks! |
I've noticed that if a Project applies the ShadowJar plugin, that shadow jars are automatically added to the maven publication. I do not want this. I read the docs on maven publishing but it was confusing and didn't seem to explain how to disable shadow jars from automatically being added as artifacts in publications.
The text was updated successfully, but these errors were encountered: