summaryrefslogtreecommitdiff
path: root/java/java_test.go
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2018-10-04 11:45:49 +0100
committerNeil Fuller <nfuller@google.com>2018-10-10 08:42:12 +0000
commit1fee9f3dd0e2ec4b6142bd6cd03d35e5de9d1eb2 (patch)
treedbb92f525935d0b06d4ce20bc6274db2e59697e7 /java/java_test.go
parentbd4abf5dfc143d2f943312f55a638d33d538ccbc (diff)
Include all core libs in default boot classpath
To migrate the default compilation over to using "core platform api" stubs we need to make the "before" state as close to the "after" state as possible. The stubs will include all "core libraries" so it makes sense to include those that contribute to the "core platform api": okhttp, bouncycastle and conscrypt. (apache-xml is not included because it doesn't contribute to the core platform API). After this change all explicit dependencies to okhttp, bouncycastle and conscrypt in situations where the default boot classpath is used can be removed. A knock-on of this change is that the conscrypt, bouncycastle and okhttp targets need to be adjusted to explicitly depend on core-oj / core-libart with no_standard_libs: true to avoid a cycle. Bug: 113148576 Test: treehugger Change-Id: I1677af8d9d48fd026874ebce4c864f39ec1a5a3d
Diffstat (limited to 'java/java_test.go')
-rw-r--r--java/java_test.go18
1 files changed, 7 insertions, 11 deletions
diff --git a/java/java_test.go b/java/java_test.go
index 1bfd24bbc..76244f04b 100644
--- a/java/java_test.go
+++ b/java/java_test.go
@@ -115,9 +115,11 @@ func testContext(config android.Config, bp string,
"core-libart",
"core-lambda-stubs",
"core-simple",
+ "bouncycastle",
+ "conscrypt",
+ "okhttp",
"framework",
"ext",
- "okhttp",
"android_stubs_current",
"android_system_stubs_current",
"android_test_stubs_current",
@@ -365,16 +367,16 @@ var classpathTestcases = []struct {
}{
{
name: "default",
- bootclasspath: []string{"core-oj", "core-libart", "core-simple"},
+ bootclasspath: []string{"core-oj", "core-libart", "core-simple", "bouncycastle", "conscrypt", "okhttp"},
system: "core-system-modules",
- classpath: []string{"ext", "framework", "okhttp"},
+ classpath: []string{"ext", "framework"},
},
{
name: "blank sdk version",
properties: `sdk_version: "",`,
- bootclasspath: []string{"core-oj", "core-libart", "core-simple"},
+ bootclasspath: []string{"core-oj", "core-libart", "core-simple", "bouncycastle", "conscrypt", "okhttp"},
system: "core-system-modules",
- classpath: []string{"ext", "framework", "okhttp"},
+ classpath: []string{"ext", "framework"},
},
{
@@ -1062,12 +1064,6 @@ func TestJavaSdkLibrary(t *testing.T) {
name: "droiddoc-templates-sdk",
path: ".",
}
- java_library {
- name: "conscrypt",
- }
- java_library {
- name: "bouncycastle",
- }
java_sdk_library {
name: "foo",
srcs: ["a.java", "b.java"],