I put them in `sourceSets.main.java.srcDirs` and it works. It's no need to create a new category.

```
sourceSets {
  main {
    java {
      srcDirs = ["src/main/java", "src/gen/java"]
    }
  }
}
```