diff options
author | Julien Desprez <jdesprez@google.com> | 2018-08-28 09:00:32 -0700 |
---|---|---|
committer | Julien Desprez <jdesprez@google.com> | 2018-08-28 09:00:32 -0700 |
commit | 975b739940f1c0db2f29ecef6c1dd55483155018 (patch) | |
tree | 5e0ffb04259ad5aff3ae92bf059a7bb081ae9f18 | |
parent | c5161757bad8e99dbdae12728fd8b96e5ced8830 (diff) | |
download | loganalysis-975b739940f1c0db2f29ecef6c1dd55483155018.tar.gz |
Consolidate loganalysis and tradefed build rules
Save about 4MB of jar size by avoiding statically
shipping some library several times.
Test: make, unit tests
Bug: 77915666
Change-Id: Iec5b24d4f2d85159bf250eded431c8e89f40f7c1
-rw-r--r-- | Android.bp | 6 | ||||
-rw-r--r-- | tests/Android.mk | 3 |
2 files changed, 4 insertions, 5 deletions
@@ -18,9 +18,9 @@ java_library_host { srcs: [ "src/**/*.java" ], - static_libs: [ - "guava-18.0-prebuilt", - "json-prebuilt", + libs: [ + "guava", "junit", + "json-prebuilt", ], } diff --git a/tests/Android.mk b/tests/Android.mk index 5b71e21..8eda916 100644 --- a/tests/Android.mk +++ b/tests/Android.mk @@ -24,8 +24,7 @@ LOCAL_JAVACFLAGS += -g -Xlint LOCAL_MODULE := loganalysis-tests LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_JAVA_LIBRARIES := easymock junit-host -LOCAL_JAVA_LIBRARIES := loganalysis +LOCAL_JAVA_LIBRARIES := loganalysis json-prebuilt junit-host easymock include $(BUILD_HOST_JAVA_LIBRARY) |