GRADLE-2171: Skip duplicate files when assembling zip and tar files