Skip to content

Commit 44134d8

Browse files
committed
Use newer error_prone for JDK 17+
1 parent 5302119 commit 44134d8

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

pom.xml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,4 +480,35 @@
480480
</plugin>
481481
</plugins>
482482
</build>
483+
484+
<profiles>
485+
<profile>
486+
<id>errorprone-jdk25</id>
487+
<activation>
488+
<jdk>[25,)</jdk>
489+
</activation>
490+
<build>
491+
<plugins>
492+
<plugin>
493+
<groupId>org.apache.maven.plugins</groupId>
494+
<artifactId>maven-compiler-plugin</artifactId>
495+
<configuration>
496+
<annotationProcessorPaths combine.self="override">
497+
<path>
498+
<groupId>com.google.errorprone</groupId>
499+
<artifactId>error_prone_core</artifactId>
500+
<version>2.48.0</version>
501+
</path>
502+
<path>
503+
<groupId>com.uber.nullaway</groupId>
504+
<artifactId>nullaway</artifactId>
505+
<version>0.13.1</version>
506+
</path>
507+
</annotationProcessorPaths>
508+
</configuration>
509+
</plugin>
510+
</plugins>
511+
</build>
512+
</profile>
513+
</profiles>
483514
</project>

0 commit comments

Comments
 (0)