|
1 |
| -<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"> |
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
2 | 3 | <modelVersion>4.0.0</modelVersion>
|
3 | 4 | <parent>
|
4 | 5 | <groupId>io.cucumber</groupId>
|
|
38 | 39 |
|
39 | 40 |
|
40 | 41 | <properties>
|
| 42 | + <!-- Tool chains, ect --> |
| 43 | + <base.java.version>1.8</base.java.version> |
| 44 | + <javadoc.java.version>8</javadoc.java.version> |
| 45 | + <toolchain.vendor>openjdk</toolchain.vendor> |
| 46 | + <toolchain.java.version>11</toolchain.java.version> |
| 47 | + <!-- Enable multi-release profile when running from the release plugin --> |
| 48 | + <arguments>-Dmulti-release=true</arguments> |
| 49 | + |
41 | 50 | <!--Semantic version -->
|
42 | 51 | <apiguardian-api.version>1.1.0</apiguardian-api.version>
|
| 52 | + |
43 | 53 | <!--Dependencies -->
|
44 | 54 | <cucumber-expressions.version>8.3.1</cucumber-expressions.version>
|
45 | 55 | <datatable.version>3.2.0</datatable.version>
|
|
272 | 282 | </profiles>
|
273 | 283 |
|
274 | 284 | <build>
|
| 285 | + <plugins> |
| 286 | + <plugin> |
| 287 | + <groupId>org.apache.maven.plugins</groupId> |
| 288 | + <artifactId>maven-toolchains-plugin</artifactId> |
| 289 | + <executions> |
| 290 | + <execution> |
| 291 | + <goals> |
| 292 | + <goal>toolchain</goal> |
| 293 | + </goals> |
| 294 | + </execution> |
| 295 | + </executions> |
| 296 | + <configuration> |
| 297 | + <toolchains> |
| 298 | + <jdk> |
| 299 | + <version>${toolchain.java.version}</version> |
| 300 | + <vendor>${toolchain.vendor}</vendor> |
| 301 | + </jdk> |
| 302 | + </toolchains> |
| 303 | + </configuration> |
| 304 | + </plugin> |
| 305 | + |
| 306 | + <!-- enable Java 9,10,11 compilation --> |
| 307 | + <plugin> |
| 308 | + <groupId>org.apache.maven.plugins</groupId> |
| 309 | + <artifactId>maven-compiler-plugin</artifactId> |
| 310 | + <executions> |
| 311 | + <execution> |
| 312 | + <id>java9</id> |
| 313 | + <phase>compile</phase> |
| 314 | + </execution> |
| 315 | + <execution> |
| 316 | + <id>java10</id> |
| 317 | + <phase>compile</phase> |
| 318 | + </execution> |
| 319 | + <execution> |
| 320 | + <id>java11</id> |
| 321 | + <phase>compile</phase> |
| 322 | + </execution> |
| 323 | + </executions> |
| 324 | + </plugin> |
| 325 | + </plugins> |
| 326 | + |
275 | 327 | <pluginManagement>
|
276 | 328 | <plugins>
|
277 | 329 | <!-- Standard plugins - alphabetically -->
|
|
301 | 353 | </dependency>
|
302 | 354 | </dependencies>
|
303 | 355 | </plugin>
|
| 356 | + <plugin> |
| 357 | + <groupId>org.apache.maven.plugins</groupId> |
| 358 | + <artifactId>maven-jar-plugin</artifactId> |
| 359 | + <executions> |
| 360 | + <execution> |
| 361 | + <id>default-jar</id> |
| 362 | + <configuration> |
| 363 | + <archive> |
| 364 | + <manifestEntries> |
| 365 | + <Multi-Release>true</Multi-Release> |
| 366 | + </manifestEntries> |
| 367 | + </archive> |
| 368 | + </configuration> |
| 369 | + </execution> |
| 370 | + </executions> |
| 371 | + </plugin> |
| 372 | + <plugin> |
| 373 | + <groupId>org.apache.maven.plugins</groupId> |
| 374 | + <artifactId>maven-compiler-plugin</artifactId> |
| 375 | + <configuration> |
| 376 | + <source>${base.java.version}</source> |
| 377 | + <target>${base.java.version}</target> |
| 378 | + </configuration> |
| 379 | + <executions> |
| 380 | + <!-- for Java 9 --> |
| 381 | + <execution> |
| 382 | + <id>java9</id> |
| 383 | + <phase>none</phase> |
| 384 | + <goals> |
| 385 | + <goal>compile</goal> |
| 386 | + </goals> |
| 387 | + <configuration> |
| 388 | + <release>9</release> |
| 389 | + <jdkToolchain> |
| 390 | + <version>9</version> |
| 391 | + </jdkToolchain> |
| 392 | + <compileSourceRoots> |
| 393 | + <compileSourceRoot>${project.basedir}/src/main/java9</compileSourceRoot> |
| 394 | + </compileSourceRoots> |
| 395 | + <multiReleaseOutput>true</multiReleaseOutput> |
| 396 | + </configuration> |
| 397 | + </execution> |
| 398 | + |
| 399 | + <!-- for Java 10 --> |
| 400 | + <execution> |
| 401 | + <id>java10</id> |
| 402 | + <phase>none</phase> |
| 403 | + <goals> |
| 404 | + <goal>compile</goal> |
| 405 | + </goals> |
| 406 | + <configuration> |
| 407 | + <release>10</release> |
| 408 | + <jdkToolchain> |
| 409 | + <version>10</version> |
| 410 | + </jdkToolchain> |
| 411 | + <compileSourceRoots> |
| 412 | + <compileSourceRoot>${project.basedir}/src/main/java10</compileSourceRoot> |
| 413 | + </compileSourceRoots> |
| 414 | + <multiReleaseOutput>true</multiReleaseOutput> |
| 415 | + </configuration> |
| 416 | + </execution> |
| 417 | + |
| 418 | + <!-- for Java 11 --> |
| 419 | + <execution> |
| 420 | + <id>java11</id> |
| 421 | + <phase>none</phase> |
| 422 | + <goals> |
| 423 | + <goal>compile</goal> |
| 424 | + </goals> |
| 425 | + <configuration> |
| 426 | + <release>11</release> |
| 427 | + <jdkToolchain> |
| 428 | + <version>11</version> |
| 429 | + </jdkToolchain> |
| 430 | + <compileSourceRoots> |
| 431 | + <compileSourceRoot>${project.basedir}/src/main/java11</compileSourceRoot> |
| 432 | + </compileSourceRoots> |
| 433 | + <multiReleaseOutput>true</multiReleaseOutput> |
| 434 | + </configuration> |
| 435 | + </execution> |
| 436 | + </executions> |
| 437 | + </plugin> |
304 | 438 |
|
305 | 439 | <plugin>
|
306 | 440 | <groupId>org.apache.maven.plugins</groupId>
|
307 | 441 | <artifactId>maven-javadoc-plugin</artifactId>
|
308 | 442 | <configuration>
|
309 |
| - <use>false</use> |
310 |
| - <doclint>none</doclint> |
311 |
| - <source>8</source> |
| 443 | + <source>${javadoc.java.version}</source> |
312 | 444 | <excludePackageNames>io.cucumber.examples:org.springframework</excludePackageNames>
|
313 | 445 | <links>
|
314 |
| - <link>http://docs.oracle.com/javase/8/docs/api/</link> |
315 | 446 | <link>http://junit.sourceforge.net/javadoc/</link>
|
316 | 447 | <link>https://junit.org/junit5/docs/current/api/</link>
|
317 | 448 | <link>https://javadoc.io/doc/org.testng/testng/7.0.0/</link>
|
|
356 | 487 | <version>3.0.0</version>
|
357 | 488 | </plugin>
|
358 | 489 |
|
| 490 | + <plugin> |
| 491 | + <groupId>org.apache.maven.plugins</groupId> |
| 492 | + <artifactId>maven-toolchains-plugin</artifactId> |
| 493 | + <version>1.1</version> |
| 494 | + </plugin> |
| 495 | + |
359 | 496 | <!-- Semantic version check -->
|
360 | 497 | <plugin>
|
361 | 498 | <groupId>org.revapi</groupId>
|
|
0 commit comments