Kapt: Ensure we collect .java files from the unique directories (#KT-24963)
This commit is contained in:
@@ -22,11 +22,13 @@ class KaptPaths(
|
|||||||
val annotationProcessingClasspath = annotationProcessingClasspath.distinct()
|
val annotationProcessingClasspath = annotationProcessingClasspath.distinct()
|
||||||
|
|
||||||
fun collectJavaSourceFiles(): List<File> {
|
fun collectJavaSourceFiles(): List<File> {
|
||||||
return (javaSourceRoots + stubsOutputDir).flatMap { root ->
|
return (javaSourceRoots + stubsOutputDir)
|
||||||
root.walk().filter { it.isFile && it.extension == "java" }.toList()
|
.map { it.canonicalFile }
|
||||||
}
|
.distinct()
|
||||||
|
.flatMap { root ->
|
||||||
|
root.walk().filter { it.isFile && it.extension == "java" }.toList()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun KaptPaths.log(logger: KaptLogger) {
|
fun KaptPaths.log(logger: KaptLogger) {
|
||||||
|
|||||||
Reference in New Issue
Block a user