diff --git a/src/test/java/com/google/devtools/build/android/r8/BUILD b/src/test/java/com/google/devtools/build/android/r8/BUILD index c52bc6102ffff5..2e60ca3ac8f28c 100644 --- a/src/test/java/com/google/devtools/build/android/r8/BUILD +++ b/src/test/java/com/google/devtools/build/android/r8/BUILD @@ -36,13 +36,9 @@ java_library( "//third_party:guava", "//third_party:junit4", "//third_party:truth", + "@android_gmaven_r8//jar", "@bazel_tools//tools/java/runfiles", - ] + select({ - "//external:has_androidsdk": [ - "//external:android/d8_jar_import", - ], - "//conditions:default": [], - }), + ], ) java_test( diff --git a/src/tools/android/java/com/google/devtools/build/android/r8/BUILD b/src/tools/android/java/com/google/devtools/build/android/r8/BUILD index c0701712c0f74f..361cb910e1e85b 100644 --- a/src/tools/android/java/com/google/devtools/build/android/r8/BUILD +++ b/src/tools/android/java/com/google/devtools/build/android/r8/BUILD @@ -51,10 +51,8 @@ java_library( "//third_party:auto_value", "//third_party:guava", "//third_party:jsr305", - ] + select({ - "//external:has_androidsdk": ["//external:android/d8_jar_import"], - "//conditions:default": [], - }), + "@android_gmaven_r8//jar", + ], ) java_library( diff --git a/src/tools/android/java/com/google/devtools/build/android/r8/BUILD.tools b/src/tools/android/java/com/google/devtools/build/android/r8/BUILD.tools index 643a8d4c7951d1..1567b9215cac53 100644 --- a/src/tools/android/java/com/google/devtools/build/android/r8/BUILD.tools +++ b/src/tools/android/java/com/google/devtools/build/android/r8/BUILD.tools @@ -4,7 +4,7 @@ java_library( name = "r8", srcs = glob(["*.java", "desugar/*.java"]), deps = [ - "//external:android/d8_jar_import", + "@android_gmaven_r8//jar", "//src/tools/android/java/com/google/devtools/build/android:all_android_tools", ], plugins = ["auto_value_plugin"],