Skip to content

Commit cc1002a

Browse files
committed
* Add a classpath root for Spring Boot searching for application.properties and templates.
1 parent c987ae2 commit cc1002a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ internal class ProjectClassesResolver(private val projectRoot: Path) : ClassPath
1515
}
1616
},
1717
// Maven
18-
sequenceOf(resolveIfExists(projectRoot, "target", "classes"))
18+
sequenceOf(resolveIfExists(projectRoot, "target", "classes")),
19+
// Spring Boot application.properties and templates.
20+
sequenceOf(resolveIfExists(projectRoot, "build", "resources", "main"))
1921
).flatten().filterNotNull().toSet()
2022
}
2123

0 commit comments

Comments
 (0)