Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Zip resources are exploded into output Jar #196
Correct. This would be the expected behavior. Shadow is only for merging applications dependencies. a Jar file in
If you want a local dependency, then you should be adding the jar as a File Dependency per https://docs.gradle.org/current/userguide/dependency_management.html#sub:file_dependencies
Not really. I have a resource file in format of zip, take an example of postal code. This file present under
The same doesn't happen with shadowJar. Please refer shadow-example for further details.
Here is the details:
For workaround, just change the extension from .zip to .zipx and it works!
Though, the code needs to modified to refer the file with extension .zipx and looks to be a simpler change.
referenced this issue
Apr 22, 2016
added a commit
Jul 11, 2016
FYI, for the longest time i've been double-zipping my resources to stop shadow
i'll try 1.4 at some point and report whether this has been fixed.