[Bazel] jps-to-bazel: Generate module_name for Bazel test targets

GitOrigin-RevId: f4ad36f9aca74625a22e9151750646da1a170af1
This commit is contained in:
Aleksei.Cherepanov
2025-07-31 15:06:43 +02:00
committed by intellij-monorepo-bot
parent 864b8a5ded
commit ca2f9de554

View File

@@ -598,6 +598,9 @@ internal class BazelBuildFileGenerator(
load("@rules_jvm//:jvm.bzl", "jvm_library")
target("jvm_library") {
option("name", testLibTargetName)
if (testDeps == null || testDeps.associates.isEmpty()) { // => in this case no 'associates' attribute will be generated
option("module_name", module.name)
}
visibility(arrayOf("//visibility:public"))