Skip to content

Commit 6d8ea27

Browse files
Stephan202Compile-Testing Team
authored andcommitted
Omit auto-value from runtime classpath
By depending on `auto-value-annotations` instead. Fixes #499 COPYBARA_INTEGRATE_REVIEW=#499 from Stephan202:sschroevers/only-auto-value-annotations-on-classpath 954293c PiperOrigin-RevId: 802239957
1 parent 578b79f commit 6d8ea27

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

pom.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<description>Utilities for testing compilation.</description>
1010

1111
<properties>
12+
<autovalue.version>1.11.0</autovalue.version>
1213
<truth.version>1.4.4</truth.version>
1314
</properties>
1415

@@ -77,8 +78,8 @@
7778
</dependency>
7879
<dependency>
7980
<groupId>com.google.auto.value</groupId>
80-
<artifactId>auto-value</artifactId>
81-
<version>1.11.0</version>
81+
<artifactId>auto-value-annotations</artifactId>
82+
<version>${autovalue.version}</version>
8283
</dependency>
8384
<dependency>
8485
<groupId>com.google.auto</groupId>
@@ -112,6 +113,13 @@
112113
<compilerArgument>-Xlint:all</compilerArgument>
113114
<showWarnings>true</showWarnings>
114115
<showDeprecation>true</showDeprecation>
116+
<annotationProcessorPaths>
117+
<path>
118+
<groupId>com.google.auto.value</groupId>
119+
<artifactId>auto-value</artifactId>
120+
<version>${autovalue.version}</version>
121+
</path>
122+
</annotationProcessorPaths>
115123
</configuration>
116124
</plugin>
117125
<plugin>

0 commit comments

Comments
 (0)