How can I exclude kts files from the kotlin source...
# gradle
h
How can I exclude kts files from the kotlin source-sets in a build.gradle.kts? So how would I translate:
Copy code
sourceSets {
    main {
        kotlin {
            exclude '*.kts'
       }
   }
}
into gradle kotlin-dsl? I actually would not mind them being comiled. but gradle 4.7 dies with a
java.lang.RuntimeException: Primary constructor not found for script template class ScriptTemplateWithArgs (not found) at org.jetbrains.kotlin.codegen.ScriptCodegen.genConstructor(ScriptCodegen.kt:101)