java {
srcDir 'src'
exclude '**/myTests/*.kt'
}
There is no Kotlin related configuration.
Why I am saying this,
I have all the kotlin files into kotlin directory and java files into java directory. But while configuring, I have put
sourceSets {
main.java.srcDirs += "src/main/kotlin"
}
this means that with src/main/java
add source files from src/main/kotlin
also while compiling.
This should solve your issue.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…