blob: 4d053fc4233fa1e34383703ffa564f96e549216b [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 Benkardeac6ed72022-10-09 19:40:50 +020016 <version>0.1.8-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 Bot32fc95b2023-03-06 06:01:26 +000058 <compiler-plugin.version>3.11.0</compiler-plugin.version>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +010059 <failsafe-plugin.version>${surefire-plugin.version}</failsafe-plugin.version>
Renovate Bot0106bc02023-05-09 21:01:17 +000060 <flatten-plugin.version>1.5.0</flatten-plugin.version>
renovate[bot]a378e612022-12-17 09:26:01 +010061 <jar-plugin.version>3.3.0</jar-plugin.version>
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +010062 <jpackage-plugin.version>0.1.5</jpackage-plugin.version>
Renovate Bot20de5222023-05-18 16:01:20 +000063 <maven-scm-plugin.version>2.0.1</maven-scm-plugin.version>
Renovate Botbed2d5e2023-05-08 11:02:39 +000064 <maven-gpg-plugin.version>3.1.0</maven-gpg-plugin.version>
Renovate Botfc17e892023-12-03 20:02:55 +000065 <maven-javadoc-plugin.version>3.6.3</maven-javadoc-plugin.version>
Renovate Bot44b0a682023-05-21 09:01:36 +000066 <maven-source-plugin.version>3.3.0</maven-source-plugin.version>
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +010067 <native-plugin.version>0.9.23</native-plugin.version>
renovate[bot]a378e612022-12-17 09:26:01 +010068 <nexus-staging-plugin.version>1.6.13</nexus-staging-plugin.version>
Renovate Botfe42f322023-12-04 05:03:09 +000069 <spotless-plugin.version>2.41.1</spotless-plugin.version>
Renovate Botf59652b2023-11-06 22:01:57 +000070 <surefire-plugin.version>3.2.2</surefire-plugin.version>
Renovate Bot3df0c0c2023-11-17 01:02:13 +000071 <versions-plugin.version>2.16.2</versions-plugin.version>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +010072
73 <apiguardian.version>1.1.2</apiguardian.version>
Renovate Bot60bc1f22023-10-18 19:01:50 +000074 <errorprone.version>2.23.0</errorprone.version>
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +010075 <guava.version>32.1.3-jre</guava.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>
Renovate Bot9376aaa2023-11-05 18:02:05 +000078 <junit-jupiter.version>5.10.1</junit-jupiter.version>
Renovate Bote9ab00b2023-11-30 21:03:27 +000079 <nullaway.version>0.10.18</nullaway.version>
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +010080 <picocli.version>4.7.4</picocli.version>
81 <yasson.version>3.0.2</yasson.version>
Matthias Andreas Benkard50a626d2021-12-30 19:13:49 +010082 <xz.version>1.9</xz.version>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +010083 </properties>
84
85 <distributionManagement>
86 <snapshotRepository>
87 <id>ossrh</id>
88 <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
89 </snapshotRepository>
90 </distributionManagement>
91
92 <dependencyManagement>
93 <dependencies>
94 <!-- Annotations -->
95 <dependency>
96 <groupId>com.google.errorprone</groupId>
97 <artifactId>error_prone_annotations</artifactId>
98 <version>${errorprone.version}</version>
99 </dependency>
100 <dependency>
101 <groupId>org.jetbrains</groupId>
102 <artifactId>annotations</artifactId>
103 <version>${jetbrains-annotations.version}</version>
104 </dependency>
105 <dependency>
106 <groupId>org.apiguardian</groupId>
107 <artifactId>apiguardian-api</artifactId>
108 <version>${apiguardian.version}</version>
109 </dependency>
110
Matthias Andreas Benkard50a626d2021-12-30 19:13:49 +0100111 <!-- OSTree compression support -->
112 <dependency>
113 <groupId>org.tukaani</groupId>
114 <artifactId>xz</artifactId>
Matthias Andreas Benkarde236b4d2022-03-01 13:51:01 +0100115 <version>${xz.version}</version>
Matthias Andreas Benkard50a626d2021-12-30 19:13:49 +0100116 </dependency>
117
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +0100118 <!-- Command line tooling -->
119 <dependency>
120 <groupId>info.picocli</groupId>
121 <artifactId>picocli</artifactId>
122 <version>${picocli.version}</version>
123 </dependency>
124
125 <!-- JSON -->
126 <dependency>
127 <groupId>org.eclipse</groupId>
128 <artifactId>yasson</artifactId>
129 <version>${yasson.version}</version>
130 </dependency>
131
132 <!-- Guava -->
133 <dependency>
134 <groupId>com.google.guava</groupId>
135 <artifactId>guava</artifactId>
136 <version>${guava.version}</version>
137 </dependency>
138
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 Benkard796b19d2021-12-18 23:38:46 +0100158 </dependencies>
159 </dependencyManagement>
160
161 <build>
162
163 <pluginManagement>
164
165 <plugins>
166
167 <plugin>
168 <artifactId>maven-surefire-plugin</artifactId>
169 <version>${surefire-plugin.version}</version>
170 <configuration>
171 <argLine>
172 --add-opens eu.mulk.jgvariant.core/eu.mulk.jgvariant.core=ALL-UNNAMED
Matthias Andreas Benkarda7e9d522021-12-28 01:37:47 +0100173 --add-opens eu.mulk.jgvariant.ostree/eu.mulk.jgvariant.ostree=ALL-UNNAMED
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100174 </argLine>
175 </configuration>
176 </plugin>
177
178 <plugin>
179 <artifactId>maven-failsafe-plugin</artifactId>
180 <version>${failsafe-plugin.version}</version>
181 <configuration>
182 <argLine>
183 --add-opens eu.mulk.jgvariant.core/eu.mulk.jgvariant.core=ALL-UNNAMED
Matthias Andreas Benkarda7e9d522021-12-28 01:37:47 +0100184 --add-opens eu.mulk.jgvariant.ostree/eu.mulk.jgvariant.ostree=ALL-UNNAMED
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100185 </argLine>
186 </configuration>
187 </plugin>
188
189 <plugin>
190 <artifactId>maven-compiler-plugin</artifactId>
191 <version>${compiler-plugin.version}</version>
192 <configuration>
193 <fork>true</fork>
Matthias Andreas Benkard91dbd742022-10-17 19:38:56 +0200194 <showWarnings>true</showWarnings>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100195 <compilerArgs>
196 <arg>-XDcompilePolicy=simple</arg>
Matthias Benkardd0d05c32023-01-12 18:54:04 +0000197 <arg>-Xplugin:ErrorProne -Xep:InvalidParam:OFF -XepOpt:NullAway:AnnotatedPackages=eu.mulk</arg>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100198 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100199 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100200 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg>
201 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg>
202 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED</arg>
203 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</arg>
204 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
205 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg>
206 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg>
207 <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
208 <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg>
209 </compilerArgs>
210 <annotationProcessorPaths>
211 <path>
212 <groupId>com.google.errorprone</groupId>
213 <artifactId>error_prone_core</artifactId>
214 <version>${errorprone.version}</version>
215 </path>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100216 <path>
Matthias Andreas Benkard91dbd742022-10-17 19:38:56 +0200217 <groupId>com.uber.nullaway</groupId>
218 <artifactId>nullaway</artifactId>
219 <version>${nullaway.version}</version>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100220 </path>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100221 </annotationProcessorPaths>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100222 </configuration>
223 </plugin>
224
225 <plugin>
226 <artifactId>maven-jar-plugin</artifactId>
227 <version>${jar-plugin.version}</version>
228 </plugin>
229
230 <plugin>
231 <groupId>org.codehaus.mojo</groupId>
232 <artifactId>versions-maven-plugin</artifactId>
233 <version>${versions-plugin.version}</version>
234 </plugin>
235
236 <plugin>
237 <groupId>org.apache.maven.plugins</groupId>
238 <artifactId>maven-scm-plugin</artifactId>
239 <version>${maven-scm-plugin.version}</version>
240 <configuration>
241 <tag>v${project.version}</tag>
242 <connectionType>developerConnection</connectionType>
243 </configuration>
244 </plugin>
245
Matthias Andreas Benkard143a64b2022-03-01 14:24:12 +0100246 <plugin>
247 <groupId>org.codehaus.mojo</groupId>
248 <artifactId>flatten-maven-plugin</artifactId>
249 <version>${flatten-plugin.version}</version>
250 <executions>
251 <execution>
252 <id>flatten</id>
253 <phase>process-resources</phase>
254 <goals>
255 <goal>flatten</goal>
256 </goals>
257 </execution>
258 <execution>
259 <id>flatten.clean</id>
260 <phase>clean</phase>
261 <goals>
262 <goal>clean</goal>
263 </goals>
264 </execution>
265 </executions>
266 </plugin>
267
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +0100268 <plugin>
269 <groupId>org.graalvm.buildtools</groupId>
270 <artifactId>native-maven-plugin</artifactId>
271 <version>${native-plugin.version}</version>
272 </plugin>
273
274 <plugin>
275 <groupId>com.github.akman</groupId>
276 <artifactId>jpackage-maven-plugin</artifactId>
277 <version>${jpackage-plugin.version}</version>
278 </plugin>
279
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100280 </plugins>
281
282 </pluginManagement>
283
284 <plugins>
285
286 <plugin>
287 <groupId>com.diffplug.spotless</groupId>
288 <artifactId>spotless-maven-plugin</artifactId>
289 <version>${spotless-plugin.version}</version>
290 <configuration>
291 <java>
292 <removeUnusedImports/>
293 <importOrder>
294 <order>java,javax,org,com,de,io,dagger,eu.mulk,</order>
295 </importOrder>
296 <googleJavaFormat>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100297 <style>GOOGLE</style>
298 </googleJavaFormat>
299 </java>
300 </configuration>
301 </plugin>
302
303 <plugin>
304 <groupId>org.sonatype.plugins</groupId>
305 <artifactId>nexus-staging-maven-plugin</artifactId>
306 <version>${nexus-staging-plugin.version}</version>
307 <extensions>true</extensions>
308 <configuration>
309 <serverId>ossrh</serverId>
310 <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
311 <autoReleaseAfterClose>true</autoReleaseAfterClose>
312 </configuration>
313 </plugin>
314
Matthias Andreas Benkard143a64b2022-03-01 14:24:12 +0100315 <plugin>
316 <groupId>org.codehaus.mojo</groupId>
317 <artifactId>flatten-maven-plugin</artifactId>
318 <configuration>
319 <flattenMode>oss</flattenMode>
320 <flattenDependencyMode>all</flattenDependencyMode>
321 <pomElements>
322 <distributionManagement>flatten</distributionManagement>
323 </pomElements>
324 </configuration>
325 </plugin>
326
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100327 </plugins>
328 </build>
329
330 <profiles>
331
332 <profile>
333 <id>release</id>
334
335 <build>
336 <plugins>
337
338 <plugin>
339 <groupId>org.apache.maven.plugins</groupId>
340 <artifactId>maven-source-plugin</artifactId>
341 <version>${maven-source-plugin.version}</version>
342 <executions>
343 <execution>
344 <id>attach-sources</id>
345 <goals>
346 <goal>jar-no-fork</goal>
347 </goals>
348 </execution>
349 </executions>
350 </plugin>
351
352 <plugin>
353 <groupId>org.apache.maven.plugins</groupId>
354 <artifactId>maven-javadoc-plugin</artifactId>
355 <version>${maven-javadoc-plugin.version}</version>
356 <executions>
357 <execution>
358 <id>attach-javadocs</id>
359 <goals>
360 <goal>jar</goal>
361 </goals>
362 </execution>
363 </executions>
364 </plugin>
365
366 <plugin>
367 <groupId>org.apache.maven.plugins</groupId>
368 <artifactId>maven-gpg-plugin</artifactId>
369 <version>${maven-gpg-plugin.version}</version>
370 <configuration>
371 <keyname>code@mulk.eu</keyname>
372 </configuration>
373 <executions>
374 <execution>
375 <id>sign-artifacts</id>
376 <phase>verify</phase>
377 <goals>
378 <goal>sign</goal>
379 </goals>
380 </execution>
381 </executions>
382 </plugin>
383
384 </plugins>
385 </build>
386 </profile>
387
388 </profiles>
389
390</project>