1down voteaccepted
This is the way to go:
task makeZipDev(type: Zip){ from 'solr_config/solr_home' exclude '**/shop/product/data/**' //exclude archiveName 'solr-home.zip' destinationDir(file('/docker/solr-dev/'))}
or
task makeZipDev(type: Zip){ from 'solr_config/solr_home' excludes = ['**/shop/product/data/**'] //exclude archiveName 'solr-home.zip' destinationDir(file('docker/solr-dev/'))}