blob: 34f32c2df87f566222d71c11ff13e594a2bb711d [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 Benkard63382ac2023-12-11 20:30:38 +010016 <version>0.1.8</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 Bot32fc95b2023-03-06 06:01:26 +000058 <compiler-plugin.version>3.11.0</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 Bot0106bc02023-05-09 21:01:17 +000061 <flatten-plugin.version>1.5.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 Botfe42f322023-12-04 05:03:09 +000070 <spotless-plugin.version>2.41.1</spotless-plugin.version>
Renovate Botf59652b2023-11-06 22:01:57 +000071 <surefire-plugin.version>3.2.2</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 Bot60bc1f22023-10-18 19:01:50 +000075 <errorprone.version>2.23.0</errorprone.version>
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +010076 <guava.version>32.1.3-jre</guava.version>
Renovate Bot126844b2023-05-28 13:01:36 +000077 <inject-resources.version>0.3.3</inject-resources.version>
Renovate Bot11fe66b2023-11-15 12:02:19 +000078 <jetbrains-annotations.version>24.1.0</jetbrains-annotations.version>
Matthias Andreas Benkarddf853ef2023-12-10 20:29:35 +010079 <jqwik.version>1.8.2</jqwik.version>
Renovate Bot9376aaa2023-11-05 18:02:05 +000080 <junit-jupiter.version>5.10.1</junit-jupiter.version>
Renovate Bote9ab00b2023-11-30 21:03:27 +000081 <nullaway.version>0.10.18</nullaway.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>
133
134 <!-- Guava -->
135 <dependency>
136 <groupId>com.google.guava</groupId>
137 <artifactId>guava</artifactId>
138 <version>${guava.version}</version>
139 </dependency>
140
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100141 <!-- Testing -->
142 <dependency>
143 <groupId>org.junit.jupiter</groupId>
144 <artifactId>junit-jupiter-engine</artifactId>
145 <version>${junit-jupiter.version}</version>
146 <scope>test</scope>
147 </dependency>
148 <dependency>
149 <groupId>org.junit.jupiter</groupId>
150 <artifactId>junit-jupiter-api</artifactId>
151 <version>${junit-jupiter.version}</version>
152 <scope>test</scope>
153 </dependency>
Matthias Andreas Benkard4e8423d2021-12-19 22:56:09 +0100154 <dependency>
155 <groupId>io.hosuaby</groupId>
156 <artifactId>inject-resources-junit-jupiter</artifactId>
157 <version>${inject-resources.version}</version>
158 <scope>test</scope>
159 </dependency>
Matthias Andreas Benkarddf853ef2023-12-10 20:29:35 +0100160 <dependency>
161 <groupId>net.jqwik</groupId>
162 <artifactId>jqwik</artifactId>
163 <version>${jqwik.version}</version>
164 <scope>test</scope>
165 </dependency>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100166 </dependencies>
167 </dependencyManagement>
168
169 <build>
170
171 <pluginManagement>
172
173 <plugins>
174
175 <plugin>
176 <artifactId>maven-surefire-plugin</artifactId>
177 <version>${surefire-plugin.version}</version>
178 <configuration>
179 <argLine>
180 --add-opens eu.mulk.jgvariant.core/eu.mulk.jgvariant.core=ALL-UNNAMED
Matthias Andreas Benkarda7e9d522021-12-28 01:37:47 +0100181 --add-opens eu.mulk.jgvariant.ostree/eu.mulk.jgvariant.ostree=ALL-UNNAMED
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100182 </argLine>
183 </configuration>
184 </plugin>
185
186 <plugin>
187 <artifactId>maven-failsafe-plugin</artifactId>
188 <version>${failsafe-plugin.version}</version>
189 <configuration>
190 <argLine>
191 --add-opens eu.mulk.jgvariant.core/eu.mulk.jgvariant.core=ALL-UNNAMED
Matthias Andreas Benkarda7e9d522021-12-28 01:37:47 +0100192 --add-opens eu.mulk.jgvariant.ostree/eu.mulk.jgvariant.ostree=ALL-UNNAMED
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100193 </argLine>
194 </configuration>
195 </plugin>
196
197 <plugin>
198 <artifactId>maven-compiler-plugin</artifactId>
199 <version>${compiler-plugin.version}</version>
200 <configuration>
201 <fork>true</fork>
Matthias Andreas Benkardce8df372023-12-07 19:36:08 +0100202 <parameters>true</parameters>
Matthias Andreas Benkard91dbd742022-10-17 19:38:56 +0200203 <showWarnings>true</showWarnings>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100204 <compilerArgs>
205 <arg>-XDcompilePolicy=simple</arg>
Matthias Benkardd0d05c32023-01-12 18:54:04 +0000206 <arg>-Xplugin:ErrorProne -Xep:InvalidParam:OFF -XepOpt:NullAway:AnnotatedPackages=eu.mulk</arg>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100207 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100208 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100209 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg>
210 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg>
211 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED</arg>
212 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</arg>
213 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
214 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg>
215 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg>
216 <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
217 <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg>
218 </compilerArgs>
219 <annotationProcessorPaths>
220 <path>
221 <groupId>com.google.errorprone</groupId>
222 <artifactId>error_prone_core</artifactId>
223 <version>${errorprone.version}</version>
224 </path>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100225 <path>
Matthias Andreas Benkard91dbd742022-10-17 19:38:56 +0200226 <groupId>com.uber.nullaway</groupId>
227 <artifactId>nullaway</artifactId>
228 <version>${nullaway.version}</version>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100229 </path>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100230 </annotationProcessorPaths>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100231 </configuration>
232 </plugin>
233
234 <plugin>
235 <artifactId>maven-jar-plugin</artifactId>
236 <version>${jar-plugin.version}</version>
237 </plugin>
238
239 <plugin>
240 <groupId>org.codehaus.mojo</groupId>
241 <artifactId>versions-maven-plugin</artifactId>
242 <version>${versions-plugin.version}</version>
243 </plugin>
244
245 <plugin>
246 <groupId>org.apache.maven.plugins</groupId>
247 <artifactId>maven-scm-plugin</artifactId>
248 <version>${maven-scm-plugin.version}</version>
249 <configuration>
250 <tag>v${project.version}</tag>
251 <connectionType>developerConnection</connectionType>
252 </configuration>
253 </plugin>
254
Matthias Andreas Benkard143a64b2022-03-01 14:24:12 +0100255 <plugin>
256 <groupId>org.codehaus.mojo</groupId>
257 <artifactId>flatten-maven-plugin</artifactId>
258 <version>${flatten-plugin.version}</version>
259 <executions>
260 <execution>
261 <id>flatten</id>
262 <phase>process-resources</phase>
263 <goals>
264 <goal>flatten</goal>
265 </goals>
266 </execution>
267 <execution>
268 <id>flatten.clean</id>
269 <phase>clean</phase>
270 <goals>
271 <goal>clean</goal>
272 </goals>
273 </execution>
274 </executions>
275 </plugin>
276
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +0100277 <plugin>
Matthias Andreas Benkard40bd44a2023-12-05 21:48:46 +0100278 <groupId>org.codehaus.mojo</groupId>
279 <artifactId>exec-maven-plugin</artifactId>
280 <version>${exec-plugin.version}</version>
281 </plugin>
282
283 <plugin>
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +0100284 <groupId>org.graalvm.buildtools</groupId>
285 <artifactId>native-maven-plugin</artifactId>
286 <version>${native-plugin.version}</version>
287 </plugin>
288
289 <plugin>
290 <groupId>com.github.akman</groupId>
291 <artifactId>jpackage-maven-plugin</artifactId>
292 <version>${jpackage-plugin.version}</version>
293 </plugin>
294
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100295 </plugins>
296
297 </pluginManagement>
298
299 <plugins>
300
301 <plugin>
302 <groupId>com.diffplug.spotless</groupId>
303 <artifactId>spotless-maven-plugin</artifactId>
304 <version>${spotless-plugin.version}</version>
305 <configuration>
306 <java>
307 <removeUnusedImports/>
308 <importOrder>
309 <order>java,javax,org,com,de,io,dagger,eu.mulk,</order>
310 </importOrder>
311 <googleJavaFormat>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100312 <style>GOOGLE</style>
313 </googleJavaFormat>
314 </java>
315 </configuration>
316 </plugin>
317
318 <plugin>
319 <groupId>org.sonatype.plugins</groupId>
320 <artifactId>nexus-staging-maven-plugin</artifactId>
321 <version>${nexus-staging-plugin.version}</version>
322 <extensions>true</extensions>
323 <configuration>
324 <serverId>ossrh</serverId>
325 <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
326 <autoReleaseAfterClose>true</autoReleaseAfterClose>
327 </configuration>
328 </plugin>
329
Matthias Andreas Benkard143a64b2022-03-01 14:24:12 +0100330 <plugin>
331 <groupId>org.codehaus.mojo</groupId>
332 <artifactId>flatten-maven-plugin</artifactId>
333 <configuration>
334 <flattenMode>oss</flattenMode>
335 <flattenDependencyMode>all</flattenDependencyMode>
336 <pomElements>
337 <distributionManagement>flatten</distributionManagement>
338 </pomElements>
339 </configuration>
340 </plugin>
341
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100342 </plugins>
343 </build>
344
345 <profiles>
346
347 <profile>
348 <id>release</id>
349
350 <build>
351 <plugins>
352
353 <plugin>
354 <groupId>org.apache.maven.plugins</groupId>
355 <artifactId>maven-source-plugin</artifactId>
356 <version>${maven-source-plugin.version}</version>
357 <executions>
358 <execution>
359 <id>attach-sources</id>
360 <goals>
361 <goal>jar-no-fork</goal>
362 </goals>
363 </execution>
364 </executions>
365 </plugin>
366
367 <plugin>
368 <groupId>org.apache.maven.plugins</groupId>
369 <artifactId>maven-javadoc-plugin</artifactId>
370 <version>${maven-javadoc-plugin.version}</version>
371 <executions>
372 <execution>
373 <id>attach-javadocs</id>
374 <goals>
375 <goal>jar</goal>
376 </goals>
377 </execution>
378 </executions>
379 </plugin>
380
381 <plugin>
382 <groupId>org.apache.maven.plugins</groupId>
383 <artifactId>maven-gpg-plugin</artifactId>
384 <version>${maven-gpg-plugin.version}</version>
385 <configuration>
Matthias Andreas Benkard3887e3f2023-12-12 19:13:11 +0100386 <keyname>44DD0CEE515E547A0ABAB1D24F2E30DF0A270EFB</keyname>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100387 </configuration>
388 <executions>
389 <execution>
390 <id>sign-artifacts</id>
391 <phase>verify</phase>
392 <goals>
393 <goal>sign</goal>
394 </goals>
395 </execution>
396 </executions>
397 </plugin>
398
399 </plugins>
400 </build>
401 </profile>
402
403 </profiles>
404
405</project>