How to add a single extra resource to the existing resources

You can just configure processResources directly. sourceSets.main.resources will want everything to be in a directory and it can be bad to include your project root as an input directory.

processResources {
   from("extra") 
}
2 Likes