Reputation: 1192
I am using Gradle 1.6 to build a library I wrote. I am trying to create an uber zip file that contains my jar and several other 3rd Party dependencies of this jar. If I apply the distribution
plugin and run any of the distZip/distTar/installDist tasks, gradle skips those tasks and says they are UP-TO-DATE. No uber archive gets created. Instead of applying distribution
if I apply the application
plugin and give it a mainClassName
attribute then gradle builds the uber archive just fine. Is there something that I am not doing with the distribution
plugin? Why is it refusing to build the uber archive?
Upvotes: 1
Views: 2986
Reputation: 123910
Most likely you haven't configured the distribution plugin correctly. For example, perhaps you haven't declared the contents of the distribution. For details, see the distribution plugin chapter in the Gradle User Guide, and the samples in the full Gradle distribution.
PS: Please always show the relevant code.
Upvotes: 1