Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
private fun KotlinCompilation.Result.kspGeneratedSources(): List<File> {
val kspWorkingDir = workingDir.resolve("ksp")
val kspGeneratedDir = kspWorkingDir.resolve("sources")
val kotlinGeneratedDir = kspGeneratedDir.resolve("kotlin")
val javaGeneratedDir = kspGeneratedDir.resolve("java")
return kotlinGeneratedDir.walk().toList() +
private val KotlinCompilation.Result.workingDir: File
get() = checkNotNull(outputDirectory.parentFile)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment