Was there a change in KSP at some point that cause...
# ksp
e
Was there a change in KSP at some point that causes KSP not to run on test source sets? Is there any way to generate common code for tests?
j
Put your processor on testKsp configuration
But you will be processing sources of the test source sets, not the main source set
There is no way to generate test sources from the main source set because there's no guarantee that a test source set even exists
e
I ended up doing
Copy code
dependencies {  
     configurations 
         .filter { it.name.startsWith("ksp") && it.name.endsWith("Test") } 
         .forEach { 
             add(it.name, project(":kotlin-inject-compiler:kotlin-inject-compiler-ksp")) 
         } 
  
     kspCommonMainMetadata(project(":kotlin-inject-compiler:kotlin-inject-compiler-ksp")) 
  }