Skip to content

Commit fe7f8a0

Browse files
build: disable errorprone for JDK 24+ (googleapis#1876)
The current errorprone version is not compatible with JDK 24 onwards. While we dont have a long term solution, we will disable the check for JDK 24.
1 parent 7f9c229 commit fe7f8a0

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

pom.xml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,31 @@
232232
</build>
233233

234234
<profiles>
235+
<profile>
236+
<!-- the current errorprone version does not support JDK 24 onwards -->
237+
<id>no-errorprone-jdk-24-onwards</id>
238+
<activation>
239+
<jdk>[24,)</jdk>
240+
</activation>
241+
<build>
242+
<plugins>
243+
<plugin>
244+
<artifactId>maven-compiler-plugin</artifactId>
245+
<configuration>
246+
<fork>true</fork>
247+
<compilerArgs combine.children="append">
248+
<!-- we only use the basic compilation flags without activating errorprone -->
249+
<arg>-XDcompilePolicy=simple</arg>
250+
</compilerArgs>
251+
</configuration>
252+
</plugin>
253+
</plugins>
254+
</build>
255+
</profile>
235256
<profile>
236257
<id>java9</id>
237258
<activation>
238-
<jdk>[9,)</jdk>
259+
<jdk>[9,24)</jdk>
239260
</activation>
240261
<build>
241262
<plugins>

0 commit comments

Comments
 (0)