Is there a way to exclude kts files from a build. ...
# gradle
h
Is there a way to exclude kts files from a build. By default gradle fails with a
Copy code
java.lang.RuntimeException: Primary constructor not found for script template class ScriptTemplateWithArgs (not found)
	at org.jetbrains.kotlin.codegen.ScriptCodegen.genConstructor(ScriptCodegen.java:161)
	at org.jetbrains.kotlin.codegen.ScriptCodegen.generateBody(ScriptCodegen.java:103)
if there’s a kts file sitting somewhere in the source roots.
h
Thanks!