This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() + | |
javaGeneratedDir.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