如果您有一些不想被编译的源代码,则必须为源代码声明一个过滤器,而不是为Jar中放置的类文件声明一个过滤器。就像是:
sourceSets { main { java { include 'com/ourcompany/somepackage/activityadapter/**' include 'com/ourcompany/someotherpackage/**' exclude 'com/ourcompany/someotherpackage/polling/**' } }}


