summaryrefslogtreecommitdiff
path: root/java/testing.go
diff options
context:
space:
mode:
Diffstat (limited to 'java/testing.go')
-rw-r--r--java/testing.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/java/testing.go b/java/testing.go
index a37c0a9dc..acbefb92c 100644
--- a/java/testing.go
+++ b/java/testing.go
@@ -103,7 +103,6 @@ func GatherRequiredDepsForTest() string {
`
systemModules := []string{
- "core-system-modules",
"core-current-stubs-system-modules",
"core-platform-api-stubs-system-modules",
"android_stubs_current_system_modules",
@@ -114,7 +113,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)
}