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
Switching from Maven to Gradle Shadow #105
Comments
Hi John, Sorry if I'm being really dim. I've looked at the source and the readme you linked, but it doesn't look like that answers my original question. So the source shows me the following: ShadowJar mergeServiceFiles(Closure configureClosure) {
transform(ServiceFileTransformer, configureClosure)
} So, that only applies a single transform. My example has 2 transforms, and the addition of the mainClass. Thats what has me stumped with your implementation of the plugin. Regards, |
There's a separate And you would use this: https://github.com/johnrengelman/shadow/blob/master/README.md#transforming-resources |
Ahh ok, so the following should do it: shadowJar {
mergeServiceFiles()
transform(ManifestResourceTransformer) {
mainClass = com.my.Application
}
} I thought I had tried that with no joy. Will try again. |
Since
|
Thanks! your solution is much more elegant and intuitive. I appreciate your help and kudos on the plugin, I've certainly noticed a speed bonus over the other alternatives. Many thanks! |
How can I do the following in Gradle Shadow:
I can see you have the ManifestResourceTransformer, but I cant see a ServiceResourceTransformer. If you could supply a snippet for the usecase above that would be very handy! Kind regards, Sion
The text was updated successfully, but these errors were encountered: