mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[jps-to-bazel] Don't associate w/ production if no test source roots in DependencyKt#generateDeps (IJI-3028)
Mainly to keep test dependency graph clean. GitOrigin-RevId: d60233e378751b2be1219ca57b6652656a4e700a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
84c442c152
commit
033c05f691
@@ -62,8 +62,13 @@ internal fun generateDeps(
|
||||
val provided = mutableListOf<BazelLabel>()
|
||||
|
||||
if (isTest && module.sources.isNotEmpty()) {
|
||||
// associates also is a dependency
|
||||
associates.add(BazelLabel(":${module.targetName}", module))
|
||||
if (hasSources) {
|
||||
// associates also is a dependency
|
||||
associates.add(BazelLabel(":${module.targetName}", module))
|
||||
}
|
||||
else {
|
||||
runtimeDeps.add(BazelLabel(":${module.targetName}", module))
|
||||
}
|
||||
}
|
||||
|
||||
val testModuleProperties = context.javaExtensionService.getTestModuleProperties(module.module)
|
||||
|
||||
Reference in New Issue
Block a user