Skip to content

Commit 9efb7a3

Browse files
koushfwcd
andauthored
Update adapter/src/main/kotlin/org/javacs/ktda/classpath/ProjectClassesResolver.kt
Co-authored-by: FW <[email protected]>
1 parent 275ba8c commit 9efb7a3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

adapter/src/main/kotlin/org/javacs/ktda/classpath/ProjectClassesResolver.kt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ internal class ProjectClassesResolver(private val projectRoot: Path) : ClassPath
1010
override val classpath: Set<Path> get() = sequenceOf(
1111
// Gradle
1212
sequenceOf("kotlin", "java").flatMap { language ->
13-
sequenceOf("main", "test").map { sourceSet ->
14-
resolveIfExists(projectRoot, "build", "classes", language, sourceSet)
15-
// kotlin multiplatform project jvm build path
16-
resolveIfExists(projectRoot, "build", "classes", language, "jvm", sourceSet)
13+
sequenceOf("main", "test").flatMap { sourceSet ->
14+
sequenceOf(
15+
resolveIfExists(projectRoot, "build", "classes", language, sourceSet),
16+
// kotlin multiplatform project jvm build path
17+
resolveIfExists(projectRoot, "build", "classes", language, "jvm", sourceSet)
18+
)
1719
}
1820
},
1921
// Maven

0 commit comments

Comments
 (0)