Created
June 9, 2019 22:45
-
-
Save muminc/037d76c47ba8b180430f43eba8c6bdf1 to your computer and use it in GitHub Desktop.
making ErrorProne work with nullaway and lombok
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.choudhury</groupId> | |
<artifactId>error-nullaway</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<dependencies> | |
<dependency> | |
<groupId>org.junit.jupiter</groupId> | |
<artifactId>junit-jupiter-engine</artifactId> | |
<version>5.4.2</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.checkerframework</groupId> | |
<artifactId>checker-qual</artifactId> | |
<version>2.5.2</version> | |
</dependency> | |
<dependency> | |
<groupId>org.projectlombok</groupId> | |
<artifactId>lombok</artifactId> | |
<version>1.18.8</version> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.8.1</version> | |
<configuration> | |
<source>11</source> | |
<target>11</target> | |
<failOnWarning>true</failOnWarning> | |
<compilerArgs> | |
<arg>-parameters</arg> | |
<arg>-Werror</arg> | |
<arg>-Xplugin:ErrorProne -Xep:NullAway:ERROR -XepOpt:NullAway:AnnotatedPackages=com.mypackage.x.y.z -XepDisableWarningsInGeneratedCode</arg> | |
<arg>-XDcompilePolicy=simple</arg> | |
</compilerArgs> | |
<annotationProcessorPaths> | |
<path> | |
<groupId>org.projectlombok</groupId> | |
<artifactId>lombok</artifactId> | |
<version>1.18.8</version> | |
</path> | |
<path> | |
<groupId>com.google.errorprone</groupId> | |
<artifactId>error_prone_core</artifactId> | |
<version>2.3.3</version> | |
</path> | |
<path> | |
<groupId>com.uber.nullaway</groupId> | |
<artifactId>nullaway</artifactId> | |
<version>0.7.3</version> | |
</path> | |
</annotationProcessorPaths> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment