I noticed that kotlin sources generated in android debug unit tests don’t seem to be visible to the java compiler, which causes the java compilation to fail.
but it seems like this was an oversight in configuring the source sets in the ksp plugin?
z
Zac Sweers
08/30/2021, 7:50 PM
Is it solely a java project?
e
elihart
08/30/2021, 7:50 PM
no, mixed
repro:
• add a ksp processor dependency with kspTest
• have the test sources cause the symbol processor to generate kotlin files
• have those generated kotlin files referenced by java sources within the test sources
• compilation fails with error that the java sources cannot find references to the generated kotlin (compileDebugUnitTestKotlin task)