Anchor repository root probe

- Require the core source tree alongside the settings file when walking up for the repository root, so modded-common tests built inside a loader adapter no longer stop at that adapter's own settings file
This commit is contained in:
Brian Neumann-Fopiano committed 2026-09-08 04:28:40 -04:00
1 parent bdb13d1647
commit e5b7cb97a8
3 files changed
+6 -3

No files matched your search

@@ -69,7 +69,8 @@ public final class ProjectPaths {
Path current = moduleRoot;
while (current != null) {
if (Files.isRegularFile(current.resolve("settings.gradle"))) {
if (Files.isRegularFile(current.resolve("settings.gradle"))
&& Files.isDirectory(current.resolve("core/src/main/java"))) {
return current;
}