更新时间:2023-09-30 08:07:22
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'
}