kotlin-compile-testing icon indicating copy to clipboard operation
kotlin-compile-testing copied to clipboard

KSP compilation does not run if there are no kotlin sources

Open yigit opened this issue 5 years ago • 1 comments

Just noticed this as we do not run kotlin compilation if there are no kotlin sources, which by-passes KSP alltogether.

I will take a look at it, since KSP does support java, we should be running kotlin compilation even when all sources are in java.

yigit avatar Aug 06 '20 00:08 yigit

The same also happens with the KAPT plugin (and probably all others as well). In case there are no Kotlin source files, I just add an empty dummy file to trick the K2JVMCompiler.

tschuchortdev avatar Aug 06 '20 10:08 tschuchortdev