|
94 | 94 | <artifactId>velocity-engine-core</artifactId> |
95 | 95 | <version>${velocity-engine-core.version}</version> |
96 | 96 | </dependency> |
| 97 | + <dependency> |
| 98 | + <groupId>com.uber.nullaway</groupId> |
| 99 | + <artifactId>nullaway</artifactId> |
| 100 | + <version>0.3.0</version> |
| 101 | + </dependency> |
| 102 | + <dependency> |
| 103 | + <groupId>org.codehaus.plexus</groupId> |
| 104 | + <artifactId>plexus-compiler-javac-errorprone</artifactId> |
| 105 | + <version>2.8</version> |
| 106 | + </dependency> |
| 107 | + <!-- override plexus-compiler-javac-errorprone's dependency on |
| 108 | + Error Prone with the latest version --> |
| 109 | + <dependency> |
| 110 | + <groupId>com.google.errorprone</groupId> |
| 111 | + <artifactId>error_prone_core</artifactId> |
| 112 | + <version>2.1.3</version> |
| 113 | + </dependency> |
97 | 114 | </dependencies> |
98 | 115 |
|
99 | 116 | <repositories> |
|
130 | 147 | </dependency> |
131 | 148 | </dependencies> |
132 | 149 | </plugin> |
| 150 | + <plugin> |
| 151 | + <groupId>org.apache.maven.plugins</groupId> |
| 152 | + <artifactId>maven-compiler-plugin</artifactId> |
| 153 | + <version>3.5</version> |
| 154 | + <configuration> |
| 155 | + <compilerId>javac-with-errorprone</compilerId> |
| 156 | + <forceJavacCompilerUse>true</forceJavacCompilerUse> |
| 157 | + <source>1.8</source> |
| 158 | + <target>1.8</target> |
| 159 | + <showWarnings>true</showWarnings> |
| 160 | + <annotationProcessorPaths> |
| 161 | + <path> |
| 162 | + <groupId>com.uber.nullaway</groupId> |
| 163 | + <artifactId>nullaway</artifactId> |
| 164 | + <version>0.3.0</version> |
| 165 | + </path> |
| 166 | + </annotationProcessorPaths> |
| 167 | + <compilerArgs> |
| 168 | + <!-- NullAway will warn by default, uncomment the next line to make the build fail --> |
| 169 | + <!-- <arg>-Xep:NullAway:ERROR</arg> --> |
| 170 | + <arg>-XepExcludedPaths:(.*)/test/.*|(.*)/jcabi/.*</arg> |
| 171 | + <arg>-XepOpt:NullAway:AnnotatedPackages=com.baeldung.nullaway</arg> |
| 172 | + </compilerArgs> |
| 173 | + </configuration> |
| 174 | + <dependencies> |
| 175 | + <dependency> |
| 176 | + <groupId>org.codehaus.plexus</groupId> |
| 177 | + <artifactId>plexus-compiler-javac-errorprone</artifactId> |
| 178 | + <version>2.8</version> |
| 179 | + </dependency> |
| 180 | + <!-- override plexus-compiler-javac-errorprone's dependency on |
| 181 | + Error Prone with the latest version --> |
| 182 | + <dependency> |
| 183 | + <groupId>com.google.errorprone</groupId> |
| 184 | + <artifactId>error_prone_core</artifactId> |
| 185 | + <version>2.3.4</version> |
| 186 | + </dependency> |
| 187 | + </dependencies> |
| 188 | + </plugin> |
133 | 189 | </plugins> |
134 | 190 | <resources> |
135 | 191 | <resource> |
|
0 commit comments