|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
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/xsd/maven-4.0.0.xsd"> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
3 | 5 | <parent> |
4 | 6 | <groupId>com.github.siom79.japicmp</groupId> |
5 | 7 | <artifactId>japicmp-base</artifactId> |
|
12 | 14 |
|
13 | 15 | <name>japicmp-maven-plugin</name> |
14 | 16 | <description>japicmp-maven-plugin is a maven plugin that computes the differences between two |
15 | | - versions of a jar file/artifact in order to ease the API documentation for clients/customers. |
| 17 | + versions of a jar file/artifact in order to ease the API documentation for |
| 18 | + clients/customers. |
16 | 19 | </description> |
17 | 20 | <url>https://github.com/siom79/japicmp</url> |
18 | 21 |
|
|
25 | 28 | </licenses> |
26 | 29 |
|
27 | 30 | <properties> |
28 | | - <mavenVersion>3.8.1</mavenVersion> <!-- maven.version property is reserved! --> |
29 | | - <resolver.version>1.4.1</resolver.version> <!-- keep in sync with maven version --> |
30 | | - <maven-plugin.version>3.6.4</maven-plugin.version> |
| 31 | + <reporting.version>3.1.0</reporting.version> |
| 32 | + <maven.pluginTesting.version>4.0.0-alpha-2</maven.pluginTesting.version> |
| 33 | + |
| 34 | + <test.directory>${project.build.directory}/test-run</test.directory> |
31 | 35 | </properties> |
32 | 36 |
|
33 | 37 | <prerequisites> |
|
59 | 63 | <version>${resolver.version}</version> |
60 | 64 | <scope>provided</scope> |
61 | 65 | </dependency> |
| 66 | + <dependency> |
| 67 | + <groupId>org.apache.maven.resolver</groupId> |
| 68 | + <artifactId>maven-resolver-impl</artifactId> |
| 69 | + <version>${resolver.version}</version> |
| 70 | + <scope>provided</scope> |
| 71 | + </dependency> |
62 | 72 | <dependency> |
63 | 73 | <groupId>org.apache.maven.plugin-tools</groupId> |
64 | 74 | <artifactId>maven-plugin-annotations</artifactId> |
|
68 | 78 | <groupId>com.google.guava</groupId> |
69 | 79 | <artifactId>guava</artifactId> |
70 | 80 | </dependency> |
71 | | - <dependency> |
72 | | - <groupId>org.apache.maven.reporting</groupId> |
73 | | - <artifactId>maven-reporting-api</artifactId> |
74 | | - <version>${reporting.version}</version> |
75 | | - </dependency> |
76 | 81 | <dependency> |
77 | 82 | <groupId>org.apache.maven.reporting</groupId> |
78 | 83 | <artifactId>maven-reporting-impl</artifactId> |
|
98 | 103 | <artifactId>groovy-jsr223</artifactId> |
99 | 104 | <version>4.0.15</version> |
100 | 105 | </dependency> |
| 106 | + <dependency> |
| 107 | + <groupId>org.apache.maven.plugin-testing</groupId> |
| 108 | + <artifactId>maven-plugin-testing-harness</artifactId> |
| 109 | + <version>${maven.pluginTesting.version}</version> |
| 110 | + <scope>test</scope> |
| 111 | + </dependency> |
| 112 | + <dependency> |
| 113 | + <groupId>org.apache.maven.resolver</groupId> |
| 114 | + <artifactId>maven-resolver-connector-basic</artifactId> |
| 115 | + <version>${resolver.version}</version> |
| 116 | + <scope>test</scope> |
| 117 | + </dependency> |
| 118 | + <dependency> |
| 119 | + <groupId>org.apache.maven.resolver</groupId> |
| 120 | + <artifactId>maven-resolver-transport-http</artifactId> |
| 121 | + <version>${resolver.version}</version> |
| 122 | + <scope>test</scope> |
| 123 | + </dependency> |
| 124 | + <dependency> |
| 125 | + <groupId>org.apache.maven</groupId> |
| 126 | + <artifactId>maven-compat</artifactId> |
| 127 | + <version>3.8.1</version> |
| 128 | + <scope>test</scope> |
| 129 | + </dependency> |
| 130 | + <dependency> |
| 131 | + <groupId>org.slf4j</groupId> |
| 132 | + <artifactId>slf4j-api</artifactId> |
| 133 | + <version>2.0.17</version> |
| 134 | + <scope>test</scope> |
| 135 | + </dependency> |
| 136 | + <dependency> |
| 137 | + <groupId>ch.qos.logback</groupId> |
| 138 | + <artifactId>logback-classic</artifactId> |
| 139 | + <version>1.5.19</version> |
| 140 | + <scope>test</scope> |
| 141 | + </dependency> |
101 | 142 | </dependencies> |
102 | 143 |
|
103 | 144 | <build> |
|
158 | 199 | <groupId>com.github.spotbugs</groupId> |
159 | 200 | <artifactId>spotbugs-maven-plugin</artifactId> |
160 | 201 | </plugin> |
| 202 | + <plugin> |
| 203 | + <groupId>org.apache.maven.plugins</groupId> |
| 204 | + <artifactId>maven-surefire-plugin</artifactId> |
| 205 | + <configuration> |
| 206 | + <argLine>@{argLine}</argLine> |
| 207 | + <useModulePath>false</useModulePath> |
| 208 | + </configuration> |
| 209 | + </plugin> |
| 210 | + <plugin> |
| 211 | + <groupId>org.jacoco</groupId> |
| 212 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 213 | + <version>0.8.8</version> |
| 214 | + <executions> |
| 215 | + <execution> |
| 216 | + <id>default-prepare-agent</id> |
| 217 | + <goals> |
| 218 | + <goal>prepare-agent</goal> |
| 219 | + </goals> |
| 220 | + </execution> |
| 221 | + <execution> |
| 222 | + <id>default-report</id> |
| 223 | + <goals> |
| 224 | + <goal>report</goal> |
| 225 | + </goals> |
| 226 | + </execution> |
| 227 | + </executions> |
| 228 | + </plugin> |
161 | 229 | </plugins> |
| 230 | + |
| 231 | + <!-- Copy test data to the test directory --> |
| 232 | + <testResources> |
| 233 | + <testResource> |
| 234 | + <directory>src/test/resources</directory> |
| 235 | + <targetPath>${project.build.directory}/test-classes</targetPath> |
| 236 | + <excludes> |
| 237 | + <exclude>**/data/**</exclude> |
| 238 | + </excludes> |
| 239 | + </testResource> |
| 240 | + <testResource> |
| 241 | + <directory>src/test/resources/data</directory> |
| 242 | + <targetPath>${test.directory}</targetPath> |
| 243 | + <filtering>true</filtering> |
| 244 | + </testResource> |
| 245 | + </testResources> |
162 | 246 | </build> |
163 | 247 |
|
164 | 248 | <reporting> |
165 | 249 | <plugins> |
| 250 | + <!-- Generate the project reports --> |
| 251 | + <plugin> |
| 252 | + <groupId>org.apache.maven.plugins</groupId> |
| 253 | + <artifactId>maven-project-info-reports-plugin</artifactId> |
| 254 | + <version>3.1.2</version> |
| 255 | + <reportSets> |
| 256 | + <reportSet> |
| 257 | + <reports> |
| 258 | + <report>index</report> |
| 259 | + <report>summary</report> |
| 260 | + <report>dependency-info</report> |
| 261 | + <report>modules</report> |
| 262 | + <report>scm</report> |
| 263 | + <report>issue-management</report> |
| 264 | + <report>mailing-lists</report> |
| 265 | + <report>dependency-management</report> |
| 266 | + <report>dependencies</report> |
| 267 | + <report>dependency-convergence</report> |
| 268 | + <report>ci-management</report> |
| 269 | + <report>plugin-management</report> |
| 270 | + <report>plugins</report> |
| 271 | + <report>distribution-management</report> |
| 272 | + </reports> |
| 273 | + </reportSet> |
| 274 | + </reportSets> |
| 275 | + </plugin> |
| 276 | + |
| 277 | + <!-- Generate the Javadoc --> |
| 278 | + <plugin> |
| 279 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 280 | + <configuration> |
| 281 | + <links> |
| 282 | + <link>https://maven.apache.org/ref/${maven-api.version}/maven-plugin-api/apidocs</link> |
| 283 | + <link>https://maven.apache.org/ref/${reporting.version}/apidocs</link> |
| 284 | + </links> |
| 285 | + <tags> |
| 286 | + <tag> |
| 287 | + <name>todo</name> |
| 288 | + <placement>a</placement> |
| 289 | + <head>To Do:</head> |
| 290 | + </tag> |
| 291 | + </tags> |
| 292 | + </configuration> |
| 293 | + <reportSets> |
| 294 | + <reportSet> |
| 295 | + <reports> |
| 296 | + <report>aggregate-no-fork</report> |
| 297 | + </reports> |
| 298 | + </reportSet> |
| 299 | + </reportSets> |
| 300 | + </plugin> |
| 301 | + <!-- Generate the code coverage report --> |
| 302 | + <plugin> |
| 303 | + <groupId>org.jacoco</groupId> |
| 304 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 305 | + <configuration> |
| 306 | + <dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile> |
| 307 | + <excludes> |
| 308 | + <exclude>**/HelpMojo*</exclude> |
| 309 | + </excludes> |
| 310 | + </configuration> |
| 311 | + <reportSets> |
| 312 | + <reportSet> |
| 313 | + <reports> |
| 314 | + <report>report</report> |
| 315 | + </reports> |
| 316 | + </reportSet> |
| 317 | + </reportSets> |
| 318 | + </plugin> |
| 319 | + <!-- Generate the Surefire report --> |
| 320 | + <plugin> |
| 321 | + <groupId>org.apache.maven.plugins</groupId> |
| 322 | + <artifactId>maven-surefire-report-plugin</artifactId> |
| 323 | + <version>${surefireVersion}</version> |
| 324 | + <reportSets> |
| 325 | + <reportSet> |
| 326 | + <reports> |
| 327 | + <report>report-only</report> |
| 328 | + </reports> |
| 329 | + </reportSet> |
| 330 | + </reportSets> |
| 331 | + </plugin> |
166 | 332 | <plugin> |
167 | 333 | <groupId>com.github.spotbugs</groupId> |
168 | 334 | <artifactId>spotbugs-maven-plugin</artifactId> |
|
0 commit comments