|
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 --> |
59 | | - <maven.clean.plugin.version>2.5</maven.clean.plugin.version> |
| 58 | + <maven.clean.plugin.version>3.4.1</maven.clean.plugin.version> |
60 | 59 | <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> |
63 | | - <maven.install.plugin.version>2.4</maven.install.plugin.version> |
64 | | - <maven.jar.plugin.version>3.3.0</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> |
68 | | - <maven.site.plugin.version>3.3</maven.site.plugin.version> |
69 | | - <maven.source.plugin.version>3.3.0</maven.source.plugin.version> |
| 60 | + <maven.deploy.plugin.version>3.1.4</maven.deploy.plugin.version> |
| 61 | + <maven.enforcer.plugin.version>3.5.0</maven.enforcer.plugin.version> |
| 62 | + <maven.install.plugin.version>3.1.4</maven.install.plugin.version> |
| 63 | + <maven.jar.plugin.version>3.4.2</maven.jar.plugin.version> |
| 64 | + <maven.javadoc.plugin.version>3.11.2</maven.javadoc.plugin.version> |
| 65 | + <maven.release.plugin.version>3.1.1</maven.release.plugin.version> |
| 66 | + <maven.resources.plugin.version>3.3.1</maven.resources.plugin.version> |
| 67 | + <maven.site.plugin.version>3.21.0</maven.site.plugin.version> |
| 68 | + <maven.source.plugin.version>3.3.1</maven.source.plugin.version> |
70 | 69 | <maven.surefire.plugin.version>3.5.2</maven.surefire.plugin.version> |
71 | 70 | <!-- Maven build plugins for quality checks --> |
72 | 71 | <error.prone.core.version>2.36.0</error.prone.core.version> |
73 | | - <jacoco.maven.plugin.version>0.8.11</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 | | - <!-- Dependency versions --> |
77 | | - <junit.version>5.12.0</junit.version> |
| 72 | + <jacoco.maven.plugin.version>0.8.12</jacoco.maven.plugin.version> |
| 73 | + <spotbugs.maven.plugin.version>4.9.2.0</spotbugs.maven.plugin.version> |
| 74 | + <com.github.spotbugs.version>4.9.2</com.github.spotbugs.version> |
| 75 | + <cyclonedx-maven-plugin.version>2.9.1</cyclonedx-maven-plugin.version> |
| 76 | + <maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version> |
| 77 | + <maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version> |
| 78 | + <jakarta.validation-api.version>3.1.1</jakarta.validation-api.version> |
| 79 | + <json.version>20250107</json.version> |
| 80 | + <junit-bom.version>5.12.0</junit-bom.version> |
| 81 | + <maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version> |
| 82 | + <maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version> |
| 83 | + <versions-maven-plugin.version>2.18.0</versions-maven-plugin.version> |
78 | 84 | </properties> |
79 | 85 |
|
80 | 86 | <scm> |
|
107 | 113 |
|
108 | 114 | <dependencyManagement> |
109 | 115 | <dependencies> |
110 | | - |
111 | 116 | <!-- BOMs at the end, so they don't overwrite the dependencies above --> |
112 | 117 | <dependency> |
113 | 118 | <groupId>org.junit</groupId> |
114 | 119 | <artifactId>junit-bom</artifactId> |
115 | | - <version>${junit.version}</version> |
| 120 | + <version>${junit-bom.version}</version> |
116 | 121 | <type>pom</type> |
117 | 122 | <scope>import</scope> |
118 | 123 | </dependency> |
119 | | - |
120 | 124 | </dependencies> |
121 | 125 | </dependencyManagement> |
122 | 126 |
|
123 | 127 | <dependencies> |
124 | 128 | <dependency> |
125 | 129 | <groupId>jakarta.validation</groupId> |
126 | 130 | <artifactId>jakarta.validation-api</artifactId> |
127 | | - <version>3.1.1</version> |
| 131 | + <version>${jakarta.validation-api.version}</version> |
128 | 132 | <optional>true</optional> |
129 | 133 | <scope>provided</scope> |
130 | 134 | </dependency> |
|
136 | 140 | <dependency> |
137 | 141 | <groupId>org.json</groupId> |
138 | 142 | <artifactId>json</artifactId> |
139 | | - <version>20240303</version> |
| 143 | + <version>${json.version}</version> |
140 | 144 | <scope>test</scope> |
141 | 145 | </dependency> |
142 | 146 | <dependency> |
|
174 | 178 | <artifactId>maven-install-plugin</artifactId> |
175 | 179 | <version>${maven.install.plugin.version}</version> |
176 | 180 | </plugin> |
| 181 | + <plugin> |
| 182 | + <groupId>org.apache.maven.plugins</groupId> |
| 183 | + <artifactId>maven-gpg-plugin</artifactId> |
| 184 | + <version>${maven-gpg-plugin.version}</version> |
| 185 | + </plugin> |
177 | 186 | <plugin> |
178 | 187 | <groupId>org.apache.maven.plugins</groupId> |
179 | 188 | <artifactId>maven-jar-plugin</artifactId> |
|
278 | 287 | </dependency> |
279 | 288 | </dependencies> |
280 | 289 | </plugin> |
| 290 | + <plugin> |
| 291 | + <groupId>org.codehaus.mojo</groupId> |
| 292 | + <artifactId>versions-maven-plugin</artifactId> |
| 293 | + <version>${versions-maven-plugin.version}</version> |
| 294 | + <configuration> |
| 295 | + <ignoredVersions>(?i).+[-.](alpha|beta|cr|dev|m|rc)([-.]?\d+)?</ignoredVersions> |
| 296 | + </configuration> |
| 297 | + </plugin> |
281 | 298 | <plugin> |
282 | 299 | <groupId>org.jacoco</groupId> |
283 | 300 | <artifactId>jacoco-maven-plugin</artifactId> |
|
327 | 344 | <plugin> |
328 | 345 | <groupId>org.cyclonedx</groupId> |
329 | 346 | <artifactId>cyclonedx-maven-plugin</artifactId> |
330 | | - <version>2.9.1</version> |
| 347 | + <version>${cyclonedx-maven-plugin.version}</version> |
331 | 348 | <configuration> |
332 | 349 | <projectType>library</projectType> |
333 | 350 | </configuration> |
|
352 | 369 | </build> |
353 | 370 |
|
354 | 371 | <profiles> |
355 | | - |
356 | 372 | <!-- |
357 | 373 | ~ Profile to run tests using JRE 8. |
358 | 374 | ~ |
|
366 | 382 | <exists>${user.home}/.m2/toolchains.xml</exists> |
367 | 383 | </file> |
368 | 384 | </activation> |
369 | | - |
370 | 385 | <build> |
371 | 386 | <plugins> |
372 | 387 | <plugin> |
|
386 | 401 | </plugins> |
387 | 402 | </build> |
388 | 403 | </profile> |
389 | | - |
390 | 404 | <profile> |
391 | 405 | <id>release</id> |
392 | 406 | <activation> |
|
415 | 429 | <plugin> |
416 | 430 | <groupId>org.apache.maven.plugins</groupId> |
417 | 431 | <artifactId>maven-gpg-plugin</artifactId> |
418 | | - <version>3.2.7</version> |
419 | 432 | <executions> |
420 | 433 | <execution> |
421 | 434 | <id>sign-artifacts</id> |
|
430 | 443 | </build> |
431 | 444 | </profile> |
432 | 445 | </profiles> |
433 | | - |
434 | 446 | </project> |
0 commit comments