|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
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 | | - |
4 | 3 | <modelVersion>4.0.0</modelVersion> |
5 | 4 | <groupId>com.github.package-url</groupId> |
6 | 5 | <artifactId>packageurl-java</artifactId> |
|
56 | 55 | <max.jdk.version>18</max.jdk.version> |
57 | 56 |
|
58 | 57 | <!-- Maven Plugin Versions --> |
| 58 | + <cyclonedx-maven-plugin.version>2.9.1</cyclonedx-maven-plugin.version> |
59 | 59 | <maven.clean.plugin.version>3.4.1</maven.clean.plugin.version> |
60 | 60 | <maven.compiler.plugin.version>3.14.0</maven.compiler.plugin.version> |
61 | | - <maven.deploy.plugin.version>2.7</maven.deploy.plugin.version> |
62 | | - <maven.enforcer.plugin.version>3.4.1</maven.enforcer.plugin.version> |
| 61 | + <maven.deploy.plugin.version>3.1.4</maven.deploy.plugin.version> |
| 62 | + <maven.enforcer.plugin.version>3.5.0</maven.enforcer.plugin.version> |
| 63 | + <maven.gpg.plugin.version>3.2.7</maven.gpg.plugin.version> |
63 | 64 | <maven.install.plugin.version>3.1.4</maven.install.plugin.version> |
64 | 65 | <maven.jar.plugin.version>3.4.2</maven.jar.plugin.version> |
65 | | - <maven.javadoc.plugin.version>3.6.3</maven.javadoc.plugin.version> |
66 | | - <maven.release.plugin.version>3.0.1</maven.release.plugin.version> |
67 | | - <maven.resources.plugin.version>2.6</maven.resources.plugin.version> |
| 66 | + <maven.javadoc.plugin.version>3.11.2</maven.javadoc.plugin.version> |
| 67 | + <maven.release.plugin.version>3.1.1</maven.release.plugin.version> |
| 68 | + <maven.resources.plugin.version>3.3.1</maven.resources.plugin.version> |
68 | 69 | <maven.site.plugin.version>3.21.0</maven.site.plugin.version> |
69 | | - <maven.source.plugin.version>3.3.0</maven.source.plugin.version> |
| 70 | + <maven.source.plugin.version>3.3.1</maven.source.plugin.version> |
70 | 71 | <maven.surefire.plugin.version>3.5.2</maven.surefire.plugin.version> |
| 72 | + <versions-maven-plugin.version>2.18.0</versions-maven-plugin.version> |
71 | 73 | <!-- Maven build plugins for quality checks --> |
72 | 74 | <error.prone.core.version>2.36.0</error.prone.core.version> |
73 | 75 | <jacoco.maven.plugin.version>0.8.12</jacoco.maven.plugin.version> |
74 | | - <spotbugs.maven.plugin.version>4.8.3.1</spotbugs.maven.plugin.version> |
75 | | - <com.github.spotbugs.version>4.8.3</com.github.spotbugs.version> |
| 76 | + <spotbugs.maven.plugin.version>4.9.3.0</spotbugs.maven.plugin.version> |
| 77 | + <com.github.spotbugs.version>4.9.3</com.github.spotbugs.version> |
76 | 78 | <!-- Dependency versions --> |
77 | | - <junit.version>5.12.0</junit.version> |
| 79 | + <jakarta.validation-api.version>3.1.1</jakarta.validation-api.version> |
| 80 | + <json.version>20250107</json.version> |
| 81 | + <junit-bom.version>5.12.1</junit-bom.version> |
78 | 82 | <maven-surefire-junit5-tree-reporter.version>1.4.0</maven-surefire-junit5-tree-reporter.version> |
79 | 83 | </properties> |
80 | 84 |
|
|
108 | 112 |
|
109 | 113 | <dependencyManagement> |
110 | 114 | <dependencies> |
111 | | - |
112 | 115 | <!-- BOMs at the end, so they don't overwrite the dependencies above --> |
113 | 116 | <dependency> |
114 | 117 | <groupId>org.junit</groupId> |
115 | 118 | <artifactId>junit-bom</artifactId> |
116 | | - <version>${junit.version}</version> |
| 119 | + <version>${junit-bom.version}</version> |
117 | 120 | <type>pom</type> |
118 | 121 | <scope>import</scope> |
119 | 122 | </dependency> |
120 | | - |
121 | 123 | </dependencies> |
122 | 124 | </dependencyManagement> |
123 | 125 |
|
124 | 126 | <dependencies> |
125 | 127 | <dependency> |
126 | 128 | <groupId>jakarta.validation</groupId> |
127 | 129 | <artifactId>jakarta.validation-api</artifactId> |
128 | | - <version>3.1.1</version> |
| 130 | + <version>${jakarta.validation-api.version}</version> |
129 | 131 | <optional>true</optional> |
130 | 132 | <scope>provided</scope> |
131 | 133 | </dependency> |
|
137 | 139 | <dependency> |
138 | 140 | <groupId>org.json</groupId> |
139 | 141 | <artifactId>json</artifactId> |
140 | | - <version>20240303</version> |
| 142 | + <version>${json.version}</version> |
141 | 143 | <scope>test</scope> |
142 | 144 | </dependency> |
143 | 145 | <dependency> |
|
180 | 182 | <artifactId>maven-install-plugin</artifactId> |
181 | 183 | <version>${maven.install.plugin.version}</version> |
182 | 184 | </plugin> |
| 185 | + <plugin> |
| 186 | + <groupId>org.apache.maven.plugins</groupId> |
| 187 | + <artifactId>maven-gpg-plugin</artifactId> |
| 188 | + <version>${maven-gpg-plugin.version}</version> |
| 189 | + </plugin> |
183 | 190 | <plugin> |
184 | 191 | <groupId>org.apache.maven.plugins</groupId> |
185 | 192 | <artifactId>maven-jar-plugin</artifactId> |
|
284 | 291 | </dependency> |
285 | 292 | </dependencies> |
286 | 293 | </plugin> |
| 294 | + <plugin> |
| 295 | + <groupId>org.codehaus.mojo</groupId> |
| 296 | + <artifactId>versions-maven-plugin</artifactId> |
| 297 | + <version>${versions-maven-plugin.version}</version> |
| 298 | + <configuration> |
| 299 | + <ignoredVersions>(?i).+[-.](alpha|beta|cr|dev|m|rc)([-.]?\d+)?</ignoredVersions> |
| 300 | + </configuration> |
| 301 | + </plugin> |
287 | 302 | <plugin> |
288 | 303 | <groupId>org.jacoco</groupId> |
289 | 304 | <artifactId>jacoco-maven-plugin</artifactId> |
|
333 | 348 | <plugin> |
334 | 349 | <groupId>org.cyclonedx</groupId> |
335 | 350 | <artifactId>cyclonedx-maven-plugin</artifactId> |
336 | | - <version>2.9.1</version> |
| 351 | + <version>${cyclonedx-maven-plugin.version}</version> |
337 | 352 | <configuration> |
338 | 353 | <projectType>library</projectType> |
339 | 354 | </configuration> |
|
358 | 373 | </build> |
359 | 374 |
|
360 | 375 | <profiles> |
361 | | - |
362 | 376 | <!-- |
363 | 377 | ~ Profile to run tests using JRE 8. |
364 | 378 | ~ |
|
372 | 386 | <exists>${user.home}/.m2/toolchains.xml</exists> |
373 | 387 | </file> |
374 | 388 | </activation> |
375 | | - |
376 | 389 | <build> |
377 | 390 | <plugins> |
378 | 391 | <plugin> |
|
408 | 421 | </plugins> |
409 | 422 | </build> |
410 | 423 | </profile> |
411 | | - |
412 | 424 | <profile> |
413 | 425 | <id>release</id> |
414 | 426 | <activation> |
|
437 | 449 | <plugin> |
438 | 450 | <groupId>org.apache.maven.plugins</groupId> |
439 | 451 | <artifactId>maven-gpg-plugin</artifactId> |
440 | | - <version>3.2.7</version> |
441 | 452 | <executions> |
442 | 453 | <execution> |
443 | 454 | <id>sign-artifacts</id> |
|
452 | 463 | </build> |
453 | 464 | </profile> |
454 | 465 | </profiles> |
455 | | - |
456 | 466 | </project> |
0 commit comments