summaryrefslogtreecommitdiff
path: root/java/testing.go
diff options
context:
space:
mode:
Diffstat (limited to 'java/testing.go')
-rw-r--r--java/testing.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/java/testing.go b/java/testing.go
index a37c0a9dc..5315b857e 100644
--- a/java/testing.go
+++ b/java/testing.go
@@ -114,7 +114,13 @@ func GatherRequiredDepsForTest() string {
for _, extra := range systemModules {
bp += fmt.Sprintf(`
java_system_modules {
- name: "%s",
+ name: "%[1]s",
+ libs: ["%[1]s-lib"],
+ }
+ java_library {
+ name: "%[1]s-lib",
+ sdk_version: "none",
+ system_modules: "none",
}
`, extra)
}