Czar
09/28/2017, 6:59 AM['src/generated/zzzzz',...].each {
idea.module.sourceDirs += file(it)
sourceSets.main.java.srcDir it
compileJava.source file(it)
}
you'll have to adapt this a bit for kotlin-dsl though, what I posted is gradle.groovy code