I am using Gradle 1.3 and have it working for a small project. It creates the .JAR files exactly as I want them to. However, when I have it create a ZIP file using distZip
The application plugin provides a configuration element applicationDistribution
, which allows you to exclude specific things from the distribution targets, e.g.:
applicationDistribution.exclude('foo*.jar')
or if you'd like to exclude several things, you can use a Groovy with
block:
applicationDistribution.with {
exclude 'foo*.jar'
exclude 'bar*.jar'
}