can i exclude `*.kts` from files that gradle tries...
# gradle
n
can i exclude
*.kts
from files that gradle tries to compile ?
e
Exclude it from the
kotlin
sourceSet
n
can you give me a bit of code ? i cannot figure out how to do it
e
Copy code
sourceSets.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.