blob: ef2e7b171e82707ce0fb01e81c0fb5108e41d1d0 [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 Benkardfde50642023-12-12 19:39:25 +010016 <version>0.1.9-SNAPSHOT</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 Bot02bee4b2023-12-24 13:02:19 +000058 <compiler-plugin.version>3.12.1</compiler-plugin.version>
Renovate Botd1c75b22023-12-05 21:04:44 +000059 <exec-plugin.version>3.1.1</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[bot]a378e612022-12-17 09:26:01 +010062 <jar-plugin.version>3.3.0</jar-plugin.version>
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +010063 <jpackage-plugin.version>0.1.5</jpackage-plugin.version>
Renovate Bot20de5222023-05-18 16:01:20 +000064 <maven-scm-plugin.version>2.0.1</maven-scm-plugin.version>
Renovate Botbed2d5e2023-05-08 11:02:39 +000065 <maven-gpg-plugin.version>3.1.0</maven-gpg-plugin.version>
Renovate Botfc17e892023-12-03 20:02:55 +000066 <maven-javadoc-plugin.version>3.6.3</maven-javadoc-plugin.version>
Renovate Bot44b0a682023-05-21 09:01:36 +000067 <maven-source-plugin.version>3.3.0</maven-source-plugin.version>
Renovate Botd1c75b22023-12-05 21:04:44 +000068 <native-plugin.version>0.9.28</native-plugin.version>
renovate[bot]a378e612022-12-17 09:26:01 +010069 <nexus-staging-plugin.version>1.6.13</nexus-staging-plugin.version>
Renovate Bot01fa4732024-01-23 08:03:07 +000070 <spotless-plugin.version>2.43.0</spotless-plugin.version>
Renovate Bot26473df2024-01-09 21:02:21 +000071 <surefire-plugin.version>3.2.5</surefire-plugin.version>
Renovate Bot3df0c0c2023-11-17 01:02:13 +000072 <versions-plugin.version>2.16.2</versions-plugin.version>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +010073
74 <apiguardian.version>1.1.2</apiguardian.version>
Renovate Botf36f6732024-01-03 18:02:15 +000075 <errorprone.version>2.24.1</errorprone.version>
Renovate Bot126844b2023-05-28 13:01:36 +000076 <inject-resources.version>0.3.3</inject-resources.version>
Renovate Bot11fe66b2023-11-15 12:02:19 +000077 <jetbrains-annotations.version>24.1.0</jetbrains-annotations.version>
Matthias Andreas Benkarddf853ef2023-12-10 20:29:35 +010078 <jqwik.version>1.8.2</jqwik.version>
Renovate Bot9376aaa2023-11-05 18:02:05 +000079 <junit-jupiter.version>5.10.1</junit-jupiter.version>
Renovate Bot54b19d22024-01-14 04:04:02 +000080 <nullaway.version>0.10.21</nullaway.version>
Matthias Andreas Benkard7ab11892023-12-13 18:22:18 +010081 <parsson.version>1.1.5</parsson.version>
Renovate Botd1c75b22023-12-05 21:04:44 +000082 <picocli.version>4.7.5</picocli.version>
83 <yasson.version>3.0.3</yasson.version>
Matthias Andreas Benkard50a626d2021-12-30 19:13:49 +010084 <xz.version>1.9</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>
103 <groupId>org.jetbrains</groupId>
104 <artifactId>annotations</artifactId>
105 <version>${jetbrains-annotations.version}</version>
106 </dependency>
107 <dependency>
108 <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>