且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Gradle从distZip中排除文件?

更新时间: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'
}

相关阅读

推荐文章