|
39 | 39 |
|
40 | 40 |
|
41 | 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 | + |
42 | 48 | <!--Semantic version -->
|
43 | 49 | <apiguardian-api.version>1.1.0</apiguardian-api.version>
|
| 50 | + |
44 | 51 | <!--Dependencies -->
|
45 | 52 | <cucumber-expressions.version>8.3.1</cucumber-expressions.version>
|
46 | 53 | <datatable.version>3.2.0</datatable.version>
|
|
266 | 273 | </execution>
|
267 | 274 | </executions>
|
268 | 275 | </plugin>
|
269 |
| - |
270 | 276 | </plugins>
|
271 | 277 | </build>
|
272 | 278 | </profile>
|
273 | 279 | </profiles>
|
274 | 280 |
|
275 | 281 | <build>
|
| 282 | + <plugins> |
| 283 | + <plugin> |
| 284 | + <groupId>org.apache.maven.plugins</groupId> |
| 285 | + <artifactId>maven-toolchains-plugin</artifactId> |
| 286 | + <executions> |
| 287 | + <execution> |
| 288 | + <goals> |
| 289 | + <goal>toolchain</goal> |
| 290 | + </goals> |
| 291 | + </execution> |
| 292 | + </executions> |
| 293 | + <configuration> |
| 294 | + <toolchains> |
| 295 | + <jdk> |
| 296 | + <version>${toolchain.java.version}</version> |
| 297 | + <vendor>${toolchain.vendor}</vendor> |
| 298 | + </jdk> |
| 299 | + </toolchains> |
| 300 | + </configuration> |
| 301 | + </plugin> |
| 302 | + |
| 303 | + <!-- enable Java 9,10,11 compilation --> |
| 304 | + <plugin> |
| 305 | + <groupId>org.apache.maven.plugins</groupId> |
| 306 | + <artifactId>maven-compiler-plugin</artifactId> |
| 307 | + <executions> |
| 308 | + <execution> |
| 309 | + <id>java9</id> |
| 310 | + <phase>compile</phase> |
| 311 | + </execution> |
| 312 | + <execution> |
| 313 | + <id>java10</id> |
| 314 | + <phase>compile</phase> |
| 315 | + </execution> |
| 316 | + <execution> |
| 317 | + <id>java11</id> |
| 318 | + <phase>compile</phase> |
| 319 | + </execution> |
| 320 | + </executions> |
| 321 | + </plugin> |
| 322 | + </plugins> |
| 323 | + |
276 | 324 | <pluginManagement>
|
277 | 325 | <plugins>
|
278 | 326 | <!-- Standard plugins - alphabetically -->
|
|
303 | 351 | </dependencies>
|
304 | 352 | </plugin>
|
305 | 353 |
|
| 354 | + <plugin> |
| 355 | + <groupId>org.apache.maven.plugins</groupId> |
| 356 | + <artifactId>maven-compiler-plugin</artifactId> |
| 357 | + <configuration> |
| 358 | + <source>${base.java.version}</source> |
| 359 | + <target>${base.java.version}</target> |
| 360 | + </configuration> |
| 361 | + <executions> |
| 362 | + <!-- for Java 9 --> |
| 363 | + <execution> |
| 364 | + <id>java9</id> |
| 365 | + <phase>none</phase> |
| 366 | + <goals> |
| 367 | + <goal>compile</goal> |
| 368 | + </goals> |
| 369 | + <configuration> |
| 370 | + <release>9</release> |
| 371 | + <jdkToolchain> |
| 372 | + <version>9</version> |
| 373 | + </jdkToolchain> |
| 374 | + <compileSourceRoots> |
| 375 | + <compileSourceRoot>${project.basedir}/src/main/java9</compileSourceRoot> |
| 376 | + </compileSourceRoots> |
| 377 | + <multiReleaseOutput>true</multiReleaseOutput> |
| 378 | + </configuration> |
| 379 | + </execution> |
| 380 | + |
| 381 | + <!-- for Java 10 --> |
| 382 | + <execution> |
| 383 | + <id>java10</id> |
| 384 | + <phase>none</phase> |
| 385 | + <goals> |
| 386 | + <goal>compile</goal> |
| 387 | + </goals> |
| 388 | + <configuration> |
| 389 | + <release>10</release> |
| 390 | + <jdkToolchain> |
| 391 | + <version>10</version> |
| 392 | + </jdkToolchain> |
| 393 | + <compileSourceRoots> |
| 394 | + <compileSourceRoot>${project.basedir}/src/main/java10</compileSourceRoot> |
| 395 | + </compileSourceRoots> |
| 396 | + <multiReleaseOutput>true</multiReleaseOutput> |
| 397 | + </configuration> |
| 398 | + </execution> |
| 399 | + |
| 400 | + <!-- for Java 11 --> |
| 401 | + <execution> |
| 402 | + <id>java11</id> |
| 403 | + <phase>none</phase> |
| 404 | + <goals> |
| 405 | + <goal>compile</goal> |
| 406 | + </goals> |
| 407 | + <configuration> |
| 408 | + <release>11</release> |
| 409 | + <jdkToolchain> |
| 410 | + <version>11</version> |
| 411 | + </jdkToolchain> |
| 412 | + <compileSourceRoots> |
| 413 | + <compileSourceRoot>${project.basedir}/src/main/java11</compileSourceRoot> |
| 414 | + </compileSourceRoots> |
| 415 | + <multiReleaseOutput>true</multiReleaseOutput> |
| 416 | + </configuration> |
| 417 | + </execution> |
| 418 | + </executions> |
| 419 | + </plugin> |
| 420 | + |
306 | 421 | <plugin>
|
307 | 422 | <groupId>org.apache.maven.plugins</groupId>
|
308 | 423 | <artifactId>maven-javadoc-plugin</artifactId>
|
309 | 424 | <configuration>
|
310 |
| - <use>false</use> |
311 |
| - <doclint>none</doclint> |
312 |
| - <source>8</source> |
| 425 | + <source>${javadoc.java.version}</source> |
313 | 426 | <excludePackageNames>io.cucumber.examples:org.springframework</excludePackageNames>
|
314 | 427 | <links>
|
315 |
| - <link>http://docs.oracle.com/javase/8/docs/api/</link> |
316 | 428 | <link>https://junit.org/junit4/javadoc/latest/</link>
|
317 | 429 | <!-- javadoc plugin can't port docs for modularized code to
|
318 |
| - non-modularized code --> |
| 430 | + non-modularized code --> |
319 | 431 | <!-- <link>https://junit.org/junit5/docs/current/api/</link>-->
|
320 |
| - <link>https://javadoc.io/doc/org.testng/testng/7.0.0/</link> |
| 432 | + <link>https://javadoc.io/doc/org.testng/testng/7.1.0/</link> |
321 | 433 | </links>
|
322 | 434 | <groups>
|
323 | 435 | <group>
|
|
359 | 471 | <version>3.0.0</version>
|
360 | 472 | </plugin>
|
361 | 473 |
|
| 474 | + <plugin> |
| 475 | + <groupId>org.apache.maven.plugins</groupId> |
| 476 | + <artifactId>maven-toolchains-plugin</artifactId> |
| 477 | + <version>1.1</version> |
| 478 | + </plugin> |
| 479 | + |
362 | 480 | <!-- Semantic version check -->
|
363 | 481 | <plugin>
|
364 | 482 | <groupId>org.revapi</groupId>
|
|
0 commit comments