From 0e3db34b91d72bc4982d4d5ff2e8b0ebd7a82b30 Mon Sep 17 00:00:00 2001 From: Tobias Werth Date: Tue, 9 Apr 2019 10:33:06 +0200 Subject: [PATCH] Split android common into two. This helps to remove 3MB from Bazel's binary size immediately but also will get us much closer to remove the dependency on the java.desktop module. It will also allow us to remove the jdk.compiler module. Commit 1/2 RELNOTES: None Partial commit for third_party/*, see #7971. Signed-off-by: Philipp Wollermann --- third_party/BUILD | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/third_party/BUILD b/third_party/BUILD index 01be666d8b0f17..a582add9f6c45e 100644 --- a/third_party/BUILD +++ b/third_party/BUILD @@ -74,6 +74,20 @@ java_import( ], ) +# This target only contains the jars that are used for building / running Bazel. +# The target below is for the Android tools that are not shipped with Bazel. +java_import( + name = "android_common_25_0_0_lite", + jars = [ + "android_common/com.android.tools.layoutlib_layoutlib_26.1.2.jar", + "android_common/com.android.tools_sdk-common_25.0.0.jar", + "android_common/com.android.tools_repository_25.0.0.jar", + ], + deps = [ + "//third_party/jaxb", + ], +) + java_import( name = "android_common_25_0_0", jars = [