ZacSweers/auto-service-ksp

AutoService's generated resources don't end up in sourceSets.main.resources or allSource

scottjasso opened this issue · 1 comments

This might be more of a KSP issue, or a misunderstanding, but if I print out sourceSets.main.allSource.sourceDirectories, I get something like this:

project/src/main/resources, 
project/src/main/java, 
project/src/main/kotlin, 
project/build/generated/ksp/main/kotlin, 
project/build/generated/ksp/main/java

Notably missing is project/build/generated/ksp/main/resources. This messes with some other tools that use the sourceSet and expect to find the generated service files.

This apparently doesn't affect the actual Jar packaging, so I might just be using the wrong API here, but which one should I use?

Closing in favor of google/ksp#1741