File tree 1 file changed +46
-2
lines changed
1 file changed +46
-2
lines changed Original file line number Diff line number Diff line change 216
216
<skipTests >true</skipTests >
217
217
</properties >
218
218
</profile >
219
+ <!-- 07-Dec-2021, tatu: This is a huge mess, sorry folks... -->
219
220
<profile >
220
221
<!-- Build Record tests using Java 14 if JDK is available -->
221
- <id >java14+ </id >
222
+ <id >java14-15 </id >
222
223
<activation >
223
- <jdk >[14,) </jdk >
224
+ <jdk >[14,15] </jdk >
224
225
</activation >
225
226
<build >
226
227
<plugins >
267
268
</plugins >
268
269
</build >
269
270
</profile >
271
+ <profile >
272
+ <!-- And different set up for JDK 16+ -->
273
+ <id >java16+</id >
274
+ <activation >
275
+ <jdk >[16,)</jdk >
276
+ </activation >
277
+ <build >
278
+ <plugins >
279
+ <plugin >
280
+ <groupId >org.codehaus.mojo</groupId >
281
+ <artifactId >build-helper-maven-plugin</artifactId >
282
+ <executions >
283
+ <execution >
284
+ <id >add-test-source</id >
285
+ <phase >generate-test-sources</phase >
286
+ <goals >
287
+ <goal >add-test-source</goal >
288
+ </goals >
289
+ <configuration >
290
+ <sources >
291
+ <source >src/test-jdk14/java</source >
292
+ </sources >
293
+ </configuration >
294
+ </execution >
295
+ </executions >
296
+ </plugin >
297
+ <plugin >
298
+ <groupId >org.apache.maven.plugins</groupId >
299
+ <artifactId >maven-compiler-plugin</artifactId >
300
+ <inherited >true</inherited >
301
+ <configuration >
302
+ <optimize >true</optimize >
303
+ <!-- Enable Java 17 for all sources so that Intellij picks the right language level -->
304
+ <source >16</source >
305
+ <release >16</release >
306
+ <compilerArgs >
307
+ <arg >-parameters</arg >
308
+ </compilerArgs >
309
+ </configuration >
310
+ </plugin >
311
+ </plugins >
312
+ </build >
313
+ </profile >
270
314
<profile >
271
315
<id >errorprone</id >
272
316
<build >
You can’t perform that action at this time.
0 commit comments