Built with from Grav and Hugo
With the java plugin applied, add:
java
sourceSets { main.groovy.srcDir("src/main/java") test.java.srcDir("src/main/test") }
Specify multiple directories:
sourceSets { test.java.srcDirs("src/test/java", "src/integration-test/java") }