Use dependency substitution as a replacement for excludes.
These test artifacts have a dependency on the support annotation binary but we want them to use the version that's being built in the repo instead.
Test: ./gradlew build
Change-Id: I8cb59b1ac4d3956bdfd8286fd2205c2e998c35a1
diff --git a/v7/appcompat/build.gradle b/v7/appcompat/build.gradle
index 214c6db..a3b80a8 100644
--- a/v7/appcompat/build.gradle
+++ b/v7/appcompat/build.gradle
@@ -13,8 +13,8 @@
api(project(":support-vector-drawable"))
api(project(":animated-vector-drawable"))
- androidTestImplementation(TEST_RUNNER, libs.exclude_annotations)
- androidTestImplementation(ESPRESSO_CORE, libs.exclude_annotations)
+ androidTestImplementation(TEST_RUNNER)
+ androidTestImplementation(ESPRESSO_CORE)
androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker
androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker
androidTestImplementation project(':support-testutils'), {