Our build does not use `kts` buildscripts, however...
# gradle
j
Our build does not use
kts
buildscripts, however i still see that
kotlin-scripting
plugin is applied by the
kotlin
plugin, which is always creating the
compileJava
task during configuration. Can I somehow avoid using the
kotlin-scripting
plugin entirely?
1
t
kotlin
plugin does not create
compileJava
tasks 🙂
on the original topic - no, you could not remove scripting plugin. This plugin is used when scripts are passed as a sources to the compilation task. If there are no scripts - overhead should be minimal
j
yeah i thought that would be weird for kotlin to create a compileJava task, but the build scan looks like it blames kotlin.
i put a
tasks.withType(JavaCompile).configureEach {}
in my build logic and set a breakpoint to see who was configuring the task. heres the stack trace, kotlin plugin is there in the stack