|
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 | </properties> |
79 | 83 |
|
80 | 84 | <scm> |
|
107 | 111 |
|
108 | 112 | <dependencyManagement> |
109 | 113 | <dependencies> |
110 | | - |
111 | 114 | <!-- BOMs at the end, so they don't overwrite the dependencies above --> |
112 | 115 | <dependency> |
113 | 116 | <groupId>org.junit</groupId> |
114 | 117 | <artifactId>junit-bom</artifactId> |
115 | | - <version>${junit.version}</version> |
| 118 | + <version>${junit-bom.version}</version> |
116 | 119 | <type>pom</type> |
117 | 120 | <scope>import</scope> |
118 | 121 | </dependency> |
119 | | - |
120 | 122 | </dependencies> |
121 | 123 | </dependencyManagement> |
122 | 124 |
|
123 | 125 | <dependencies> |
124 | 126 | <dependency> |
125 | 127 | <groupId>jakarta.validation</groupId> |
126 | 128 | <artifactId>jakarta.validation-api</artifactId> |
127 | | - <version>3.1.1</version> |
| 129 | + <version>${jakarta.validation-api.version}</version> |
128 | 130 | <optional>true</optional> |
129 | 131 | <scope>provided</scope> |
130 | 132 | </dependency> |
|
136 | 138 | <dependency> |
137 | 139 | <groupId>org.json</groupId> |
138 | 140 | <artifactId>json</artifactId> |
139 | | - <version>20240303</version> |
| 141 | + <version>${json.version}</version> |
140 | 142 | <scope>test</scope> |
141 | 143 | </dependency> |
142 | 144 | <dependency> |
|
174 | 176 | <artifactId>maven-install-plugin</artifactId> |
175 | 177 | <version>${maven.install.plugin.version}</version> |
176 | 178 | </plugin> |
| 179 | + <plugin> |
| 180 | + <groupId>org.apache.maven.plugins</groupId> |
| 181 | + <artifactId>maven-gpg-plugin</artifactId> |
| 182 | + <version>${maven-gpg-plugin.version}</version> |
| 183 | + </plugin> |
177 | 184 | <plugin> |
178 | 185 | <groupId>org.apache.maven.plugins</groupId> |
179 | 186 | <artifactId>maven-jar-plugin</artifactId> |
|
278 | 285 | </dependency> |
279 | 286 | </dependencies> |
280 | 287 | </plugin> |
| 288 | + <plugin> |
| 289 | + <groupId>org.codehaus.mojo</groupId> |
| 290 | + <artifactId>versions-maven-plugin</artifactId> |
| 291 | + <version>${versions-maven-plugin.version}</version> |
| 292 | + <configuration> |
| 293 | + <ignoredVersions>(?i).+[-.](alpha|beta|cr|dev|m|rc)([-.]?\d+)?</ignoredVersions> |
| 294 | + </configuration> |
| 295 | + </plugin> |
281 | 296 | <plugin> |
282 | 297 | <groupId>org.jacoco</groupId> |
283 | 298 | <artifactId>jacoco-maven-plugin</artifactId> |
|
327 | 342 | <plugin> |
328 | 343 | <groupId>org.cyclonedx</groupId> |
329 | 344 | <artifactId>cyclonedx-maven-plugin</artifactId> |
330 | | - <version>2.9.1</version> |
| 345 | + <version>${cyclonedx-maven-plugin.version}</version> |
331 | 346 | <configuration> |
332 | 347 | <projectType>library</projectType> |
333 | 348 | </configuration> |
|
352 | 367 | </build> |
353 | 368 |
|
354 | 369 | <profiles> |
355 | | - |
356 | 370 | <!-- |
357 | 371 | ~ Profile to run tests using JRE 8. |
358 | 372 | ~ |
|
366 | 380 | <exists>${user.home}/.m2/toolchains.xml</exists> |
367 | 381 | </file> |
368 | 382 | </activation> |
369 | | - |
370 | 383 | <build> |
371 | 384 | <plugins> |
372 | 385 | <plugin> |
|
386 | 399 | </plugins> |
387 | 400 | </build> |
388 | 401 | </profile> |
389 | | - |
390 | 402 | <profile> |
391 | 403 | <id>release</id> |
392 | 404 | <activation> |
|
415 | 427 | <plugin> |
416 | 428 | <groupId>org.apache.maven.plugins</groupId> |
417 | 429 | <artifactId>maven-gpg-plugin</artifactId> |
418 | | - <version>3.2.7</version> |
419 | 430 | <executions> |
420 | 431 | <execution> |
421 | 432 | <id>sign-artifacts</id> |
|
430 | 441 | </build> |
431 | 442 | </profile> |
432 | 443 | </profiles> |
433 | | - |
434 | 444 | </project> |
0 commit comments