|
2 | 2 | <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/maven-v4_0_0.xsd"> |
3 | 3 | <modelVersion>4.0.0</modelVersion> |
4 | 4 | <groupId>org.kohsuke</groupId> |
5 | | - <artifactId>github-api</artifactId> |
| 5 | + <artifactId>${github-api.artifactId}</artifactId> |
6 | 6 | <version>2.0-rc.2-SNAPSHOT</version> |
7 | 7 | <name>GitHub API for Java</name> |
8 | 8 | <description>GitHub API for Java</description> |
|
62 | 62 | </distributionManagement> |
63 | 63 |
|
64 | 64 | <properties> |
| 65 | + <github-api.artifactId>github-api</github-api.artifactId> |
65 | 66 | <hamcrest.version>3.0</hamcrest.version> |
66 | 67 | <!-- Using this as the minimum bar for code coverage. Adding methods without covering them will fail this. --> |
67 | 68 | <jacoco.coverage.target.bundle.method>0.70</jacoco.coverage.target.bundle.method> |
|
141 | 142 | <groupId>com.fasterxml.jackson.core</groupId> |
142 | 143 | <artifactId>jackson-databind</artifactId> |
143 | 144 | </dependency> |
| 145 | + <dependency> |
| 146 | + <groupId>com.fasterxml.jackson.datatype</groupId> |
| 147 | + <artifactId>jackson-datatype-jsr310</artifactId> |
| 148 | + </dependency> |
144 | 149 | <dependency> |
145 | 150 | <groupId>com.infradna.tool</groupId> |
146 | 151 | <artifactId>bridge-method-annotation</artifactId> |
|
302 | 307 | </testResources> |
303 | 308 | <pluginManagement> |
304 | 309 | <plugins> |
| 310 | + <plugin> |
| 311 | + <groupId>com.infradna.tool</groupId> |
| 312 | + <artifactId>bridge-method-injector</artifactId> |
| 313 | + <version>1.30</version> |
| 314 | + <executions> |
| 315 | + <execution> |
| 316 | + <goals> |
| 317 | + <goal>process</goal> |
| 318 | + </goals> |
| 319 | + </execution> |
| 320 | + </executions> |
| 321 | + </plugin> |
305 | 322 | <plugin> |
306 | 323 | <groupId>org.apache.maven.plugins</groupId> |
307 | 324 | <artifactId>maven-gpg-plugin</artifactId> |
|
324 | 341 | </configuration> |
325 | 342 | </plugin> |
326 | 343 | <plugin> |
327 | | - <groupId>org.apache.maven.plugins</groupId> |
| 344 | + <artifactId>maven-resources-plugin</artifactId> |
| 345 | + <version>3.3.1</version> |
| 346 | + </plugin> |
| 347 | + <plugin> |
328 | 348 | <artifactId>maven-source-plugin</artifactId> |
329 | 349 | <version>3.3.1</version> |
330 | 350 | </plugin> |
|
511 | 531 | <plugin> |
512 | 532 | <groupId>com.github.siom79.japicmp</groupId> |
513 | 533 | <artifactId>japicmp-maven-plugin</artifactId> |
514 | | - <version>0.23.0</version> |
| 534 | + <version>0.23.1</version> |
515 | 535 | <configuration> |
516 | 536 | <parameter> |
517 | 537 | <breakBuildOnBinaryIncompatibleModifications>true</breakBuildOnBinaryIncompatibleModifications> |
|
570 | 590 | <annotationProcessorPath> |
571 | 591 | <groupId>org.jenkins-ci</groupId> |
572 | 592 | <artifactId>annotation-indexer</artifactId> |
573 | | - <version>1.17</version> |
| 593 | + <version>1.18</version> |
574 | 594 | </annotationProcessorPath> |
575 | 595 | </annotationProcessorPaths> |
576 | 596 | </configuration> |
|
619 | 639 | <artifactId>maven-surefire-plugin</artifactId> |
620 | 640 | <configuration> |
621 | 641 | <argLine>@{jacoco.surefire.argLine} ${surefire.argLine}</argLine> |
| 642 | + <systemPropertyVariables> |
| 643 | + <test.projectArtifactId>${project.artifactId}</test.projectArtifactId> |
| 644 | + </systemPropertyVariables> |
622 | 645 | </configuration> |
623 | 646 | <executions> |
624 | 647 | <execution> |
|
636 | 659 | <!-- |
637 | 660 | This plugin is used to generate AOT metadata during tests so that it can be |
638 | 661 | compared against those in META-INF/native-image/org.kohsuke/github-api/*. |
639 | | - The tests are start with the name "Aot..." |
| 662 | + The tests are start with the name "Aot..." |
640 | 663 | --> |
641 | 664 | <plugin> |
642 | 665 | <groupId>org.springframework.boot</groupId> |
|
799 | 822 | </plugins> |
800 | 823 | </build> |
801 | 824 | </profile> |
| 825 | + <profile> |
| 826 | + <id>bridged</id> |
| 827 | + <properties> |
| 828 | + <!-- Only fail code coverage on non-windows machines --> |
| 829 | + <github-api.artifactId>github-api-bridged</github-api.artifactId> |
| 830 | + </properties> |
| 831 | + <build> |
| 832 | + <plugins> |
| 833 | + <plugin> |
| 834 | + <groupId>com.infradna.tool</groupId> |
| 835 | + <artifactId>bridge-method-injector</artifactId> |
| 836 | + </plugin> |
| 837 | + <plugin> |
| 838 | + <artifactId>maven-resources-plugin</artifactId> |
| 839 | + <executions> |
| 840 | + <execution> |
| 841 | + <id>copy-bridged-resources</id> |
| 842 | + <goals> |
| 843 | + <goal>copy-resources</goal> |
| 844 | + </goals> |
| 845 | + <!-- here the phase you need --> |
| 846 | + <phase>validate</phase> |
| 847 | + <configuration> |
| 848 | + <outputDirectory>${basedir}/target/classes/META-INF/native-image/org.kohsuke/${github-api.artifactId}</outputDirectory> |
| 849 | + <resources> |
| 850 | + <resource> |
| 851 | + <directory>src/main/resources/META-INF/native-image/org.kohsuke/github-api</directory> |
| 852 | + </resource> |
| 853 | + </resources> |
| 854 | + </configuration> |
| 855 | + </execution> |
| 856 | + </executions> |
| 857 | + </plugin> |
| 858 | + </plugins> |
| 859 | + </build> |
| 860 | + </profile> |
802 | 861 | <profile> |
803 | 862 | <id>ci-non-windows</id> |
804 | 863 | <activation> |
|
0 commit comments