Use “source sets”: “creating source sets, similar to main/, helps organize files and resources that Gradle should only use when building certain versions of your app”.