blob: d30879e5c638dd847d144b639bd602d5b9240c0f [file] [log] [blame]
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +01001<?xml version="1.0" encoding="UTF-8"?>
Matthias Andreas Benkardb5d657a2022-02-03 21:14:30 +01002
3<!--
4SPDX-FileCopyrightText: © 2021 Matthias Andreas Benkard <code@mail.matthias.benkard.de>
5
6SPDX-License-Identifier: LGPL-3.0-or-later
7-->
8
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +01009<project
10 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"
11 xmlns="http://maven.apache.org/POM/4.0.0"
12 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
13
14 <modelVersion>4.0.0</modelVersion>
15
Matthias Andreas Benkard15310a22024-07-22 06:34:17 +020016 <version>0.1.10</version>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +010017
18 <groupId>eu.mulk.jgvariant</groupId>
19 <artifactId>jgvariant-parent</artifactId>
20 <packaging>pom</packaging>
21
22 <name>JGVariant Parent</name>
23 <url>https://gerrit.benkard.de/plugins/gitiles/jgvariant</url>
24
25 <description>
26 Parent POM of the JGVariant library.
27 </description>
28
29 <licenses>
30 <license>
31 <name>GNU Lesser General Public License v3.0 or later</name>
32 <url>https://www.gnu.org/licenses/lgpl-3.0.html</url>
33 </license>
34 </licenses>
35
36 <developers>
37 <developer>
38 <name>Matthias Benkard</name>
39 <email>code@mulk.eu</email>
40 <organization>Matthias Benkard</organization>
41 <organizationUrl>https://matthias.benkard.de</organizationUrl>
42 </developer>
43 </developers>
44
45 <scm>
46 <connection>scm:git:https://gerrit.benkard.de/jgvariant</connection>
47 <developerConnection>scm:git:ssh://gerrit.benkard.de:29418/jgvariant</developerConnection>
48 <url>https://gerrit.benkard.de/plugins/gitiles/jgvariant</url>
49 </scm>
50
51 <properties>
52 <maven.compiler.parameters>true</maven.compiler.parameters>
53 <maven.compiler.release>17</maven.compiler.release>
54
55 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
56 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
57
Renovate Bot03c27252024-03-18 19:03:14 +000058 <compiler-plugin.version>3.13.0</compiler-plugin.version>
Renovate Botec351d32024-10-22 08:04:29 +000059 <exec-plugin.version>3.5.0</exec-plugin.version>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +010060 <failsafe-plugin.version>${surefire-plugin.version}</failsafe-plugin.version>
Renovate Botfe1ec7b2024-01-14 12:02:50 +000061 <flatten-plugin.version>1.6.0</flatten-plugin.version>
Renovate Bot96aadaf2024-07-07 21:05:16 +000062 <jar-plugin.version>3.4.2</jar-plugin.version>
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +010063 <jpackage-plugin.version>0.1.5</jpackage-plugin.version>
Renovate Bot469edb52024-04-14 10:04:01 +000064 <maven-scm-plugin.version>2.1.0</maven-scm-plugin.version>
Renovate Bot2ef1c2b2024-09-27 15:02:58 +000065 <maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version>
Renovate Bot61bf67e2024-11-02 21:04:43 +000066 <maven-javadoc-plugin.version>3.11.1</maven-javadoc-plugin.version>
Renovate Bot60812282024-04-04 20:04:01 +000067 <maven-source-plugin.version>3.3.1</maven-source-plugin.version>
Renovate Bot03fc18b2024-09-10 11:02:43 +000068 <native-plugin.version>0.10.3</native-plugin.version>
Renovate Botccff0432024-05-27 18:02:28 +000069 <nexus-staging-plugin.version>1.7.0</nexus-staging-plugin.version>
Renovate Bot01fa4732024-01-23 08:03:07 +000070 <spotless-plugin.version>2.43.0</spotless-plugin.version>
Renovate Bot61bf67e2024-11-02 21:04:43 +000071 <surefire-plugin.version>3.5.2</surefire-plugin.version>
Renovate Botd64d8a32024-11-13 21:02:02 +000072 <versions-plugin.version>2.18.0</versions-plugin.version>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +010073
74 <apiguardian.version>1.1.2</apiguardian.version>
Renovate Bot532b9de2024-10-25 16:04:49 +000075 <errorprone.version>2.35.1</errorprone.version>
Renovate Botd2293da2024-08-07 23:02:57 +000076 <inject-resources.version>0.3.5</inject-resources.version>
Renovate Bot48cb3f42024-09-30 09:03:14 +000077 <jqwik.version>1.9.1</jqwik.version>
Matthias Andreas Benkard15456c82024-07-20 10:52:54 +020078 <jspecify.version>1.0.0</jspecify.version>
Renovate Bot8d0929b2024-10-21 14:04:58 +000079 <junit-jupiter.version>5.11.3</junit-jupiter.version>
Renovate Botf00e0512024-10-30 19:33:00 +000080 <nullaway.version>0.12.1</nullaway.version>
Renovate Botd2293da2024-08-07 23:02:57 +000081 <parsson.version>1.1.7</parsson.version>
Renovate Bote378e7a2024-05-07 23:04:01 +000082 <picocli.version>4.7.6</picocli.version>
Renovate Botd2293da2024-08-07 23:02:57 +000083 <yasson.version>3.0.4</yasson.version>
84 <xz.version>1.10</xz.version>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +010085 </properties>
86
87 <distributionManagement>
88 <snapshotRepository>
89 <id>ossrh</id>
90 <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
91 </snapshotRepository>
92 </distributionManagement>
93
94 <dependencyManagement>
95 <dependencies>
96 <!-- Annotations -->
97 <dependency>
98 <groupId>com.google.errorprone</groupId>
99 <artifactId>error_prone_annotations</artifactId>
100 <version>${errorprone.version}</version>
101 </dependency>
102 <dependency>
Matthias Andreas Benkard15456c82024-07-20 10:52:54 +0200103 <groupId>org.jspecify</groupId>
104 <artifactId>jspecify</artifactId>
105 <version>${jspecify.version}</version>
106 </dependency>
107 <dependency>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100108 <groupId>org.apiguardian</groupId>
109 <artifactId>apiguardian-api</artifactId>
110 <version>${apiguardian.version}</version>
111 </dependency>
112
Matthias Andreas Benkard50a626d2021-12-30 19:13:49 +0100113 <!-- OSTree compression support -->
114 <dependency>
115 <groupId>org.tukaani</groupId>
116 <artifactId>xz</artifactId>
Matthias Andreas Benkarde236b4d2022-03-01 13:51:01 +0100117 <version>${xz.version}</version>
Matthias Andreas Benkard50a626d2021-12-30 19:13:49 +0100118 </dependency>
119
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +0100120 <!-- Command line tooling -->
121 <dependency>
122 <groupId>info.picocli</groupId>
123 <artifactId>picocli</artifactId>
124 <version>${picocli.version}</version>
125 </dependency>
126
127 <!-- JSON -->
128 <dependency>
129 <groupId>org.eclipse</groupId>
130 <artifactId>yasson</artifactId>
131 <version>${yasson.version}</version>
132 </dependency>
Matthias Andreas Benkard7ab11892023-12-13 18:22:18 +0100133 <dependency>
134 <groupId>org.eclipse.parsson</groupId>
135 <artifactId>parsson</artifactId>
136 <version>${parsson.version}</version>
137 </dependency>
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +0100138
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100139 <!-- Testing -->
140 <dependency>
141 <groupId>org.junit.jupiter</groupId>
142 <artifactId>junit-jupiter-engine</artifactId>
143 <version>${junit-jupiter.version}</version>
144 <scope>test</scope>
145 </dependency>
146 <dependency>
147 <groupId>org.junit.jupiter</groupId>
148 <artifactId>junit-jupiter-api</artifactId>
149 <version>${junit-jupiter.version}</version>
150 <scope>test</scope>
151 </dependency>
Matthias Andreas Benkard4e8423d2021-12-19 22:56:09 +0100152 <dependency>
153 <groupId>io.hosuaby</groupId>
154 <artifactId>inject-resources-junit-jupiter</artifactId>
155 <version>${inject-resources.version}</version>
156 <scope>test</scope>
157 </dependency>
Matthias Andreas Benkarddf853ef2023-12-10 20:29:35 +0100158 <dependency>
159 <groupId>net.jqwik</groupId>
160 <artifactId>jqwik</artifactId>
161 <version>${jqwik.version}</version>
162 <scope>test</scope>
163 </dependency>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100164 </dependencies>
165 </dependencyManagement>
166
167 <build>
168
169 <pluginManagement>
170
171 <plugins>
172
173 <plugin>
174 <artifactId>maven-surefire-plugin</artifactId>
175 <version>${surefire-plugin.version}</version>
176 <configuration>
177 <argLine>
178 --add-opens eu.mulk.jgvariant.core/eu.mulk.jgvariant.core=ALL-UNNAMED
Matthias Andreas Benkarda7e9d522021-12-28 01:37:47 +0100179 --add-opens eu.mulk.jgvariant.ostree/eu.mulk.jgvariant.ostree=ALL-UNNAMED
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100180 </argLine>
181 </configuration>
182 </plugin>
183
184 <plugin>
185 <artifactId>maven-failsafe-plugin</artifactId>
186 <version>${failsafe-plugin.version}</version>
187 <configuration>
188 <argLine>
189 --add-opens eu.mulk.jgvariant.core/eu.mulk.jgvariant.core=ALL-UNNAMED
Matthias Andreas Benkarda7e9d522021-12-28 01:37:47 +0100190 --add-opens eu.mulk.jgvariant.ostree/eu.mulk.jgvariant.ostree=ALL-UNNAMED
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100191 </argLine>
192 </configuration>
193 </plugin>
194
195 <plugin>
196 <artifactId>maven-compiler-plugin</artifactId>
197 <version>${compiler-plugin.version}</version>
198 <configuration>
199 <fork>true</fork>
Matthias Andreas Benkardce8df372023-12-07 19:36:08 +0100200 <parameters>true</parameters>
Matthias Andreas Benkard91dbd742022-10-17 19:38:56 +0200201 <showWarnings>true</showWarnings>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100202 <compilerArgs>
203 <arg>-XDcompilePolicy=simple</arg>
Matthias Benkardd0d05c32023-01-12 18:54:04 +0000204 <arg>-Xplugin:ErrorProne -Xep:InvalidParam:OFF -XepOpt:NullAway:AnnotatedPackages=eu.mulk</arg>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100205 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100206 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100207 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg>
208 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg>
209 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED</arg>
210 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</arg>
211 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
212 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg>
213 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg>
214 <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
215 <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg>
216 </compilerArgs>
217 <annotationProcessorPaths>
218 <path>
219 <groupId>com.google.errorprone</groupId>
220 <artifactId>error_prone_core</artifactId>
221 <version>${errorprone.version}</version>
222 </path>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100223 <path>
Matthias Andreas Benkard91dbd742022-10-17 19:38:56 +0200224 <groupId>com.uber.nullaway</groupId>
225 <artifactId>nullaway</artifactId>
226 <version>${nullaway.version}</version>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100227 </path>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100228 </annotationProcessorPaths>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100229 </configuration>
230 </plugin>
231
232 <plugin>
233 <artifactId>maven-jar-plugin</artifactId>
234 <version>${jar-plugin.version}</version>
235 </plugin>
236
237 <plugin>
238 <groupId>org.codehaus.mojo</groupId>
239 <artifactId>versions-maven-plugin</artifactId>
240 <version>${versions-plugin.version}</version>
241 </plugin>
242
243 <plugin>
244 <groupId>org.apache.maven.plugins</groupId>
245 <artifactId>maven-scm-plugin</artifactId>
246 <version>${maven-scm-plugin.version}</version>
247 <configuration>
248 <tag>v${project.version}</tag>
249 <connectionType>developerConnection</connectionType>
250 </configuration>
251 </plugin>
252
Matthias Andreas Benkard143a64b2022-03-01 14:24:12 +0100253 <plugin>
254 <groupId>org.codehaus.mojo</groupId>
255 <artifactId>flatten-maven-plugin</artifactId>
256 <version>${flatten-plugin.version}</version>
257 <executions>
258 <execution>
259 <id>flatten</id>
260 <phase>process-resources</phase>
261 <goals>
262 <goal>flatten</goal>
263 </goals>
264 </execution>
265 <execution>
266 <id>flatten.clean</id>
267 <phase>clean</phase>
268 <goals>
269 <goal>clean</goal>
270 </goals>
271 </execution>
272 </executions>
273 </plugin>
274
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +0100275 <plugin>
Matthias Andreas Benkard40bd44a2023-12-05 21:48:46 +0100276 <groupId>org.codehaus.mojo</groupId>
277 <artifactId>exec-maven-plugin</artifactId>
278 <version>${exec-plugin.version}</version>
279 </plugin>
280
281 <plugin>
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +0100282 <groupId>org.graalvm.buildtools</groupId>
283 <artifactId>native-maven-plugin</artifactId>
284 <version>${native-plugin.version}</version>
285 </plugin>
286
287 <plugin>
288 <groupId>com.github.akman</groupId>
289 <artifactId>jpackage-maven-plugin</artifactId>
290 <version>${jpackage-plugin.version}</version>
291 </plugin>
292
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100293 </plugins>
294
295 </pluginManagement>
296
297 <plugins>
298
299 <plugin>
300 <groupId>com.diffplug.spotless</groupId>
301 <artifactId>spotless-maven-plugin</artifactId>
302 <version>${spotless-plugin.version}</version>
303 <configuration>
304 <java>
305 <removeUnusedImports/>
306 <importOrder>
307 <order>java,javax,org,com,de,io,dagger,eu.mulk,</order>
308 </importOrder>
309 <googleJavaFormat>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100310 <style>GOOGLE</style>
311 </googleJavaFormat>
312 </java>
313 </configuration>
314 </plugin>
315
316 <plugin>
317 <groupId>org.sonatype.plugins</groupId>
318 <artifactId>nexus-staging-maven-plugin</artifactId>
319 <version>${nexus-staging-plugin.version}</version>
320 <extensions>true</extensions>
321 <configuration>
322 <serverId>ossrh</serverId>
323 <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
324 <autoReleaseAfterClose>true</autoReleaseAfterClose>
325 </configuration>
326 </plugin>
327
Matthias Andreas Benkard143a64b2022-03-01 14:24:12 +0100328 <plugin>
329 <groupId>org.codehaus.mojo</groupId>
330 <artifactId>flatten-maven-plugin</artifactId>
331 <configuration>
332 <flattenMode>oss</flattenMode>
333 <flattenDependencyMode>all</flattenDependencyMode>
334 <pomElements>
335 <distributionManagement>flatten</distributionManagement>
336 </pomElements>
337 </configuration>
338 </plugin>
339
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100340 </plugins>
341 </build>
342
343 <profiles>
344
345 <profile>
346 <id>release</id>
347
348 <build>
349 <plugins>
350
351 <plugin>
352 <groupId>org.apache.maven.plugins</groupId>
353 <artifactId>maven-source-plugin</artifactId>
354 <version>${maven-source-plugin.version}</version>
355 <executions>
356 <execution>
357 <id>attach-sources</id>
358 <goals>
359 <goal>jar-no-fork</goal>
360 </goals>
361 </execution>
362 </executions>
363 </plugin>
364
365 <plugin>
366 <groupId>org.apache.maven.plugins</groupId>
367 <artifactId>maven-javadoc-plugin</artifactId>
368 <version>${maven-javadoc-plugin.version}</version>
369 <executions>
370 <execution>
371 <id>attach-javadocs</id>
372 <goals>
373 <goal>jar</goal>
374 </goals>
375 </execution>
376 </executions>
377 </plugin>
378
379 <plugin>
380 <groupId>org.apache.maven.plugins</groupId>
381 <artifactId>maven-gpg-plugin</artifactId>
382 <version>${maven-gpg-plugin.version}</version>
383 <configuration>
Matthias Andreas Benkard3887e3f2023-12-12 19:13:11 +0100384 <keyname>44DD0CEE515E547A0ABAB1D24F2E30DF0A270EFB</keyname>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100385 </configuration>
386 <executions>
387 <execution>
388 <id>sign-artifacts</id>
389 <phase>verify</phase>
390 <goals>
391 <goal>sign</goal>
392 </goals>
393 </execution>
394 </executions>
395 </plugin>
396
397 </plugins>
398 </build>
399 </profile>
400
401 </profiles>
402
403</project>