|
185 | 185 | <build>
|
186 | 186 | <plugins>
|
187 | 187 | <plugin>
|
188 |
| - <groupId>org.jacoco</groupId> |
189 |
| - <artifactId>jacoco-maven-plugin</artifactId> |
| 188 | + <groupId>org.apache.maven.plugins</groupId> |
| 189 | + <artifactId>maven-compiler-plugin</artifactId> |
| 190 | + <inherited>true</inherited> |
| 191 | + <configuration> |
| 192 | + <compilerArgs> |
| 193 | + <!-- Must ensure parameter names compiled (for tests) --> |
| 194 | + <arg>-parameters</arg> |
| 195 | + </compilerArgs> |
| 196 | + </configuration> |
| 197 | + </plugin> |
| 198 | + |
| 199 | + <plugin> <!-- default settings are fine, just need to enable here --> |
| 200 | + <!-- Inherited from oss-base. Generate PackageVersion.java.--> |
| 201 | + <groupId>com.google.code.maven-replacer-plugin</groupId> |
| 202 | + <artifactId>replacer</artifactId> |
190 | 203 | <executions>
|
191 | 204 | <execution>
|
| 205 | + <id>generate-package-version-java</id> |
| 206 | + <phase>prepare-package</phase> |
192 | 207 | <goals>
|
193 |
| - <goal>prepare-agent</goal> |
194 |
| - </goals> |
195 |
| - </execution> |
196 |
| - <execution> |
197 |
| - <id>report</id> |
198 |
| - <phase>test</phase> |
199 |
| - <goals> |
200 |
| - <goal>report</goal> |
| 208 | + <goal>replace</goal> |
201 | 209 | </goals>
|
202 | 210 | </execution>
|
203 | 211 | </executions>
|
|
208 | 216 | <version>${version.plugin.surefire}</version>
|
209 | 217 | <artifactId>maven-surefire-plugin</artifactId>
|
210 | 218 | <configuration>
|
| 219 | + <!-- Needed by some of the tests --> |
| 220 | + <argLine>--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED</argLine> |
211 | 221 | <classpathDependencyExcludes>
|
212 | 222 | <exclude>javax.measure:jsr-275</exclude>
|
213 | 223 | </classpathDependencyExcludes>
|
|
233 | 243 | </configuration>
|
234 | 244 | </plugin>
|
235 | 245 |
|
236 |
| - <plugin> <!-- default settings are fine, just need to enable here --> |
237 |
| - <!-- Inherited from oss-base. Generate PackageVersion.java.--> |
238 |
| - <groupId>com.google.code.maven-replacer-plugin</groupId> |
239 |
| - <artifactId>replacer</artifactId> |
| 246 | + <plugin> |
| 247 | + <groupId>org.jacoco</groupId> |
| 248 | + <artifactId>jacoco-maven-plugin</artifactId> |
240 | 249 | <executions>
|
241 | 250 | <execution>
|
242 |
| - <id>generate-package-version-java</id> |
243 |
| - <phase>prepare-package</phase> |
244 | 251 | <goals>
|
245 |
| - <goal>replace</goal> |
| 252 | + <goal>prepare-agent</goal> |
| 253 | + </goals> |
| 254 | + </execution> |
| 255 | + <execution> |
| 256 | + <id>report</id> |
| 257 | + <phase>test</phase> |
| 258 | + <goals> |
| 259 | + <goal>report</goal> |
246 | 260 | </goals>
|
247 | 261 | </execution>
|
248 | 262 | </executions>
|
249 | 263 | </plugin>
|
250 | 264 |
|
251 |
| - <!-- 17-Sep-2017, tatu: With 3.0 need to ensure parameter names compiled in |
252 |
| - --> |
253 |
| - <plugin> |
254 |
| - <groupId>org.apache.maven.plugins</groupId> |
255 |
| - <artifactId>maven-compiler-plugin</artifactId> |
256 |
| - <inherited>true</inherited> |
257 |
| - <configuration> |
258 |
| - <compilerArgs> |
259 |
| - <arg>-parameters</arg> |
260 |
| - </compilerArgs> |
261 |
| - </configuration> |
262 |
| - </plugin> |
263 |
| - |
264 | 265 | <plugin>
|
265 | 266 | <groupId>org.moditect</groupId>
|
266 | 267 | <artifactId>moditect-maven-plugin</artifactId>
|
|
332 | 333 | </goals>
|
333 | 334 | <configuration>
|
334 | 335 | <sources>
|
335 |
| - <source>src/test-jdk11/java</source> |
336 | 336 | <source>src/test-jdk17/java</source>
|
337 | 337 | </sources>
|
338 | 338 | </configuration>
|
339 | 339 | </execution>
|
340 | 340 | </executions>
|
341 | 341 | </plugin>
|
342 |
| - <plugin> |
343 |
| - <groupId>org.apache.maven.plugins</groupId> |
344 |
| - <artifactId>maven-compiler-plugin</artifactId> |
345 |
| - <inherited>true</inherited> |
346 |
| - <configuration> |
347 |
| - <!-- Enable Java 17 for all sources so that Intellij picks the right language level --> |
348 |
| - <source>17</source> |
349 |
| - <release>17</release> |
350 |
| - <compilerArgs> |
351 |
| - <arg>-parameters</arg> |
352 |
| - <arg>--add-opens=java.base/java.lang=ALL-UNNAMED</arg> |
353 |
| - <arg>--add-opens=java.base/java.util=ALL-UNNAMED</arg> |
354 |
| - </compilerArgs> |
355 |
| - </configuration> |
356 |
| - </plugin> |
357 |
| - <plugin> |
358 |
| - <groupId>org.apache.maven.plugins</groupId> |
359 |
| - <artifactId>maven-surefire-plugin</artifactId> |
360 |
| - <configuration> |
361 |
| - <argLine>--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED</argLine> |
362 |
| - </configuration> |
363 |
| - </plugin> |
364 | 342 | </plugins>
|
365 | 343 | </build>
|
366 | 344 | </profile>
|
|
384 | 362 | </goals>
|
385 | 363 | <configuration>
|
386 | 364 | <sources>
|
387 |
| - <source>src/test-jdk11/java</source> |
388 |
| - <source>src/test-jdk17/java</source> |
389 | 365 | <source>src/test-jdk21/java</source>
|
390 | 366 | </sources>
|
391 | 367 | </configuration>
|
|
402 | 378 | <release>21</release>
|
403 | 379 | <compilerArgs>
|
404 | 380 | <arg>-parameters</arg>
|
405 |
| - <arg>--add-opens=java.base/java.lang=ALL-UNNAMED</arg> |
406 |
| - <arg>--add-opens=java.base/java.util=ALL-UNNAMED</arg> |
407 | 381 | </compilerArgs>
|
408 | 382 | </configuration>
|
409 | 383 | </plugin>
|
|
508 | 482 | <path>
|
509 | 483 | <groupId>com.google.errorprone</groupId>
|
510 | 484 | <artifactId>error_prone_core</artifactId>
|
511 |
| - <version>2.4.0</version> |
| 485 | + <version>2.36.0</version> |
512 | 486 | </path>
|
513 | 487 | </annotationProcessorPaths>
|
514 | 488 | </configuration>
|
|
0 commit comments