From a2f647f9d44174f502fb2f8a89a6c3a887ef14fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89amonn=20McManus?= Date: Tue, 6 Apr 2021 08:28:57 -0700 Subject: [PATCH] When building AutoValue, pick up AutoService via ``. The annotation dependencies for `@AutoService` and for Error Prone are now regular compile-scoped dependencies. This prevents errors from overeager consumers that can't deal with missing annotation class files. The `` incantations are kind of clunky since we need a different path for building tests (which must include AutoValueProcessor) and for building AutoValue itself (which obviously can't). Fixes https://github.com/google/auto/issues/1032. RELNOTES=n/a PiperOrigin-RevId: 367010584 --- value/processor/pom.xml | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/value/processor/pom.xml b/value/processor/pom.xml index 565f928d7a..acc889ac4a 100644 --- a/value/processor/pom.xml +++ b/value/processor/pom.xml @@ -41,6 +41,7 @@ + 1.0-rc7 2.6.0 @@ -52,15 +53,13 @@ com.google.auto.service - auto-service - 1.0-rc7 - provided + auto-service-annotations + ${auto-service.version} com.google.errorprone error_prone_annotations ${errorprone.version} - provided com.google.escapevelocity @@ -169,7 +168,33 @@ META-INF/services entry for a class that the compiler has not yet generated. --> -AallowedMissingSerializableExtensionClasses=.*TestStringSerializerFactory + + + com.google.auto.service + auto-service + ${auto-service.version} + + + + + default-testCompile + + + + com.google.auto.value + auto-value + HEAD-SNAPSHOT + + + com.google.auto.service + auto-service + ${auto-service.version} + + + + + org.apache.maven.plugins