Do not append deps to exports when java_library has only proto srcs

This is to address the comment in aosp/2748099

Test: CI

Bug: 285952385
Change-Id: I0bc8c76e2bc9ee113ced8642e0ab93a95799211c
This commit is contained in:
Zi Wang
2023-09-13 10:06:54 -07:00
parent ef1fc04e1a
commit f038cde8df
2 changed files with 2 additions and 7 deletions

View File

@@ -167,10 +167,7 @@ java_library_static {
"sdk_version": `"current"`,
}),
MakeBazelTarget("java_library", "java-protos", AttrNameToString{
"exports": `[
":java-protos_java_proto_lite",
":java-lib-neverlink",
]`,
"exports": `[":java-protos_java_proto_lite"]`,
"java_version": `"7"`,
"sdk_version": `"current"`,
}),