Bp2Build for libs property in java_library

Bp2build for both *->java_library and java_library->* edges.

Change-Id: I2540c9af2ae2fe7677767d507647b1c6669b9bb7
Bug: 244210934
Test: ./bp2build testcase, manually inspected build files for hamcrest-library, hamcrest targets
This commit is contained in:
Alix
2022-10-31 19:08:18 +00:00
parent 7d78bad7e2
commit 341484b3da
5 changed files with 58 additions and 6 deletions

View File

@@ -91,6 +91,7 @@ func TestJavaProto(t *testing.T) {
MakeBazelTarget("java_library", "java-protos", AttrNameToString{
"exports": fmt.Sprintf(`[":%s"]`, javaLibraryName),
}),
MakeNeverlinkDuplicateTarget("java_library", "java-protos"),
},
})
}
@@ -119,6 +120,7 @@ func TestJavaProtoDefault(t *testing.T) {
"exports": `[":java-protos_java_proto_lite"]`,
"javacopts": `["-source 1.7 -target 1.7"]`,
}),
MakeNeverlinkDuplicateTarget("java_library", "java-protos"),
},
})
}