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 <philwo@google.com>
diff --git a/third_party/BUILD b/third_party/BUILD index 01be666..a582add 100644 --- a/third_party/BUILD +++ b/third_party/BUILD
@@ -74,6 +74,20 @@ ], ) +# 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 = [