You probably should put this logic in the convention mapping. Giving them the freedom to set the project property in their build.gradle file.