Nikky
03/01/2019, 6:58 PM*.kts
from files that gradle tries to compile ?efemoney
03/01/2019, 8:39 PMkotlin
sourceSetNikky
03/01/2019, 8:54 PMefemoney
03/01/2019, 8:58 PMsourceSets.main.get().java.exclude("*.kts")
kotlin {
sourceSets.main.get().kotlin.exclude("*.kts")
}
Not sure which source set is relevant in your project but any or both of these should work. I’m also not too sure about the syntax for the exclude also. Check the javadoc to confirm.