jps-to-bazel: better error message for community modules which reference non-community libraries

GitOrigin-RevId: 897139756d75a62b82ef98d92c4ba04ba564d14a
This commit is contained in:
Leonid Shalupov
2025-06-17 22:00:06 +00:00
committed by intellij-monorepo-bot
parent 40808a0ee1
commit 7fb01ed947
@@ -102,7 +102,10 @@ internal fun generateDeps(
)
if (!isCommunityLib) {
require(!module.isCommunity)
require(!module.isCommunity) {
"Module ${module.module.name} must not depend on a non-community libraries because it is a community module" +
"(library=${untypedLib.name}, files=$files, bazelTargetName=$targetName)"
}
}
val prefix = when {