java_sdk_library: Specify visibility of stubs modules

Adds two new properties to specify the visibility of the stubs modules
(source and library) created by the java_sdk_library. Excludes
visibility property from being inherited when creating the module so it
can be properly specified by copying across the relevant property.

Test: m checkapi
Bug: 155164730
Change-Id: Iffdd9f191ff0d74646356ac577560cc38efdd790
This commit is contained in:
Paul Duffin
2020-04-29 23:35:13 +01:00
parent f49f431c33
commit 4911a89181
2 changed files with 28 additions and 0 deletions

View File

@@ -989,6 +989,8 @@ func TestSnapshotWithJavaSdkLibrary(t *testing.T) {
apex_available: ["//apex_available:anyapex"],
srcs: ["Test.java"],
sdk_version: "current",
stubs_library_visibility: ["//other"],
stubs_source_visibility: ["//another"],
}
`)