enable a gradle build without having duplicate files