Fix the resource and test directories for Groovy projects