Kotlin java source in gradle project

How to config kotlin in project with not standart source directories?
Java plugin can do this for java projects

java {
    sourceCompatibility = JavaVersion.VERSION_1_8
    sourceSets {
        getByName("main") {
            java {
                srcDirs.plus(file("src/generated/main/java"))
            }
        }
    }
}

//
Example perfectly working, i’m confused, no answer neeeded