[kotlin] project-model-updater: improve repo community handling

^KTIJ-35777

GitOrigin-RevId: 2b05d893448708934873b16a65e2c387e18211bb
This commit is contained in:
Dmitrii Gridin
2025-09-30 09:07:30 +00:00
committed by intellij-monorepo-bot
parent 6c124d1f28
commit bfa763f07c
@@ -67,7 +67,8 @@ fun main(args: Array<String>) {
}
val monorepoRoot = communityRoot.parent.takeIf {
it.resolve(".idea").isDirectory()
// The community name check is required since the community might be placed directly inside another repo (e.g., kotlin)
it.resolve(".idea").isDirectory() && it.resolve("community").isDirectory()
}
val resolverSettings = readJpsResolverSettings(communityRoot, monorepoRoot)