|
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> |
| 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 | + <junit.version>4.13.2</junit.version> |
| 80 | + <json.version>20250107</json.version> |
| 81 | + <junit.version>4.13.2</junit.version> |
| 82 | + <maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version> |
| 83 | + <maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version> |
| 84 | + <versions-maven-plugin.version>2.18.0</versions-maven-plugin.version> |
76 | 85 | </properties> |
77 | 86 |
|
78 | 87 | <scm> |
|
107 | 116 | <dependency> |
108 | 117 | <groupId>jakarta.validation</groupId> |
109 | 118 | <artifactId>jakarta.validation-api</artifactId> |
110 | | - <version>3.1.1</version> |
| 119 | + <version>${jakarta.validation-api.version}</version> |
111 | 120 | <optional>true</optional> |
112 | 121 | <scope>provided</scope> |
113 | 122 | </dependency> |
114 | 123 | <dependency> |
115 | 124 | <groupId>junit</groupId> |
116 | 125 | <artifactId>junit</artifactId> |
117 | | - <version>4.13.2</version> |
| 126 | + <version>${junit.version}</version> |
118 | 127 | <scope>test</scope> |
119 | 128 | </dependency> |
120 | 129 | <dependency> |
121 | 130 | <groupId>org.json</groupId> |
122 | 131 | <artifactId>json</artifactId> |
123 | | - <version>20240303</version> |
| 132 | + <version>${json.version}</version> |
124 | 133 | <scope>test</scope> |
125 | 134 | </dependency> |
126 | 135 | </dependencies> |
|
153 | 162 | <artifactId>maven-install-plugin</artifactId> |
154 | 163 | <version>${maven.install.plugin.version}</version> |
155 | 164 | </plugin> |
| 165 | + <plugin> |
| 166 | + <groupId>org.apache.maven.plugins</groupId> |
| 167 | + <artifactId>maven-gpg-plugin</artifactId> |
| 168 | + <version>${maven-gpg-plugin.version}</version> |
| 169 | + </plugin> |
156 | 170 | <plugin> |
157 | 171 | <groupId>org.apache.maven.plugins</groupId> |
158 | 172 | <artifactId>maven-jar-plugin</artifactId> |
|
257 | 271 | </dependency> |
258 | 272 | </dependencies> |
259 | 273 | </plugin> |
| 274 | + <plugin> |
| 275 | + <groupId>org.codehaus.mojo</groupId> |
| 276 | + <artifactId>versions-maven-plugin</artifactId> |
| 277 | + <version>${versions-maven-plugin.version}</version> |
| 278 | + <configuration> |
| 279 | + <ignoredVersions>(?i).+[-.](alpha|beta|cr|dev|m|rc)([-.]?\d+)?</ignoredVersions> |
| 280 | + </configuration> |
| 281 | + </plugin> |
260 | 282 | <plugin> |
261 | 283 | <groupId>org.jacoco</groupId> |
262 | 284 | <artifactId>jacoco-maven-plugin</artifactId> |
|
306 | 328 | <plugin> |
307 | 329 | <groupId>org.cyclonedx</groupId> |
308 | 330 | <artifactId>cyclonedx-maven-plugin</artifactId> |
309 | | - <version>2.9.1</version> |
| 331 | + <version>${cyclonedx-maven-plugin.version}</version> |
310 | 332 | <configuration> |
311 | 333 | <projectType>library</projectType> |
312 | 334 | </configuration> |
|
331 | 353 | </build> |
332 | 354 |
|
333 | 355 | <profiles> |
334 | | - |
335 | 356 | <!-- |
336 | 357 | ~ Profile to run tests using JRE 8. |
337 | 358 | ~ |
|
345 | 366 | <exists>${user.home}/.m2/toolchains.xml</exists> |
346 | 367 | </file> |
347 | 368 | </activation> |
348 | | - |
349 | 369 | <build> |
350 | 370 | <plugins> |
351 | 371 | <plugin> |
|
365 | 385 | </plugins> |
366 | 386 | </build> |
367 | 387 | </profile> |
368 | | - |
369 | 388 | <profile> |
370 | 389 | <id>release</id> |
371 | 390 | <activation> |
|
394 | 413 | <plugin> |
395 | 414 | <groupId>org.apache.maven.plugins</groupId> |
396 | 415 | <artifactId>maven-gpg-plugin</artifactId> |
397 | | - <version>3.2.7</version> |
398 | 416 | <executions> |
399 | 417 | <execution> |
400 | 418 | <id>sign-artifacts</id> |
|
409 | 427 | </build> |
410 | 428 | </profile> |
411 | 429 | </profiles> |
412 | | - |
413 | 430 | </project> |
0 commit comments