blob: f68b1c174eb112c29080b8ec458d356b9866fa4f [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>
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>
Renovate Bot9376aaa2023-11-05 18:02:05 +000079 <junit-jupiter.version>5.10.1</junit-jupiter.version>
Renovate Bote9ab00b2023-11-30 21:03:27 +000080 <nullaway.version>0.10.18</nullaway.version>
Renovate Botd1c75b22023-12-05 21:04:44 +000081 <picocli.version>4.7.5</picocli.version>
82 <yasson.version>3.0.3</yasson.version>
Matthias Andreas Benkard50a626d2021-12-30 19:13:49 +010083 <xz.version>1.9</xz.version>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +010084 </properties>
85
86 <distributionManagement>
87 <snapshotRepository>
88 <id>ossrh</id>
89 <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
90 </snapshotRepository>
91 </distributionManagement>
92
93 <dependencyManagement>
94 <dependencies>
95 <!-- Annotations -->
96 <dependency>
97 <groupId>com.google.errorprone</groupId>
98 <artifactId>error_prone_annotations</artifactId>
99 <version>${errorprone.version}</version>
100 </dependency>
101 <dependency>
102 <groupId>org.jetbrains</groupId>
103 <artifactId>annotations</artifactId>
104 <version>${jetbrains-annotations.version}</version>
105 </dependency>
106 <dependency>
107 <groupId>org.apiguardian</groupId>
108 <artifactId>apiguardian-api</artifactId>
109 <version>${apiguardian.version}</version>
110 </dependency>
111
Matthias Andreas Benkard50a626d2021-12-30 19:13:49 +0100112 <!-- OSTree compression support -->
113 <dependency>
114 <groupId>org.tukaani</groupId>
115 <artifactId>xz</artifactId>
Matthias Andreas Benkarde236b4d2022-03-01 13:51:01 +0100116 <version>${xz.version}</version>
Matthias Andreas Benkard50a626d2021-12-30 19:13:49 +0100117 </dependency>
118
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +0100119 <!-- Command line tooling -->
120 <dependency>
121 <groupId>info.picocli</groupId>
122 <artifactId>picocli</artifactId>
123 <version>${picocli.version}</version>
124 </dependency>
125
126 <!-- JSON -->
127 <dependency>
128 <groupId>org.eclipse</groupId>
129 <artifactId>yasson</artifactId>
130 <version>${yasson.version}</version>
131 </dependency>
132
133 <!-- Guava -->
134 <dependency>
135 <groupId>com.google.guava</groupId>
136 <artifactId>guava</artifactId>
137 <version>${guava.version}</version>
138 </dependency>
139
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100140 <!-- Testing -->
141 <dependency>
142 <groupId>org.junit.jupiter</groupId>
143 <artifactId>junit-jupiter-engine</artifactId>
144 <version>${junit-jupiter.version}</version>
145 <scope>test</scope>
146 </dependency>
147 <dependency>
148 <groupId>org.junit.jupiter</groupId>
149 <artifactId>junit-jupiter-api</artifactId>
150 <version>${junit-jupiter.version}</version>
151 <scope>test</scope>
152 </dependency>
Matthias Andreas Benkard4e8423d2021-12-19 22:56:09 +0100153 <dependency>
154 <groupId>io.hosuaby</groupId>
155 <artifactId>inject-resources-junit-jupiter</artifactId>
156 <version>${inject-resources.version}</version>
157 <scope>test</scope>
158 </dependency>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100159 </dependencies>
160 </dependencyManagement>
161
162 <build>
163
164 <pluginManagement>
165
166 <plugins>
167
168 <plugin>
169 <artifactId>maven-surefire-plugin</artifactId>
170 <version>${surefire-plugin.version}</version>
171 <configuration>
172 <argLine>
173 --add-opens eu.mulk.jgvariant.core/eu.mulk.jgvariant.core=ALL-UNNAMED
Matthias Andreas Benkarda7e9d522021-12-28 01:37:47 +0100174 --add-opens eu.mulk.jgvariant.ostree/eu.mulk.jgvariant.ostree=ALL-UNNAMED
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100175 </argLine>
176 </configuration>
177 </plugin>
178
179 <plugin>
180 <artifactId>maven-failsafe-plugin</artifactId>
181 <version>${failsafe-plugin.version}</version>
182 <configuration>
183 <argLine>
184 --add-opens eu.mulk.jgvariant.core/eu.mulk.jgvariant.core=ALL-UNNAMED
Matthias Andreas Benkarda7e9d522021-12-28 01:37:47 +0100185 --add-opens eu.mulk.jgvariant.ostree/eu.mulk.jgvariant.ostree=ALL-UNNAMED
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100186 </argLine>
187 </configuration>
188 </plugin>
189
190 <plugin>
191 <artifactId>maven-compiler-plugin</artifactId>
192 <version>${compiler-plugin.version}</version>
193 <configuration>
194 <fork>true</fork>
Matthias Andreas Benkard91dbd742022-10-17 19:38:56 +0200195 <showWarnings>true</showWarnings>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100196 <compilerArgs>
197 <arg>-XDcompilePolicy=simple</arg>
Matthias Benkardd0d05c32023-01-12 18:54:04 +0000198 <arg>-Xplugin:ErrorProne -Xep:InvalidParam:OFF -XepOpt:NullAway:AnnotatedPackages=eu.mulk</arg>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100199 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100200 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100201 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg>
202 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg>
203 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED</arg>
204 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</arg>
205 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
206 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg>
207 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg>
208 <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
209 <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg>
210 </compilerArgs>
211 <annotationProcessorPaths>
212 <path>
213 <groupId>com.google.errorprone</groupId>
214 <artifactId>error_prone_core</artifactId>
215 <version>${errorprone.version}</version>
216 </path>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100217 <path>
Matthias Andreas Benkard91dbd742022-10-17 19:38:56 +0200218 <groupId>com.uber.nullaway</groupId>
219 <artifactId>nullaway</artifactId>
220 <version>${nullaway.version}</version>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100221 </path>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100222 </annotationProcessorPaths>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100223 </configuration>
224 </plugin>
225
226 <plugin>
227 <artifactId>maven-jar-plugin</artifactId>
228 <version>${jar-plugin.version}</version>
229 </plugin>
230
231 <plugin>
232 <groupId>org.codehaus.mojo</groupId>
233 <artifactId>versions-maven-plugin</artifactId>
234 <version>${versions-plugin.version}</version>
235 </plugin>
236
237 <plugin>
238 <groupId>org.apache.maven.plugins</groupId>
239 <artifactId>maven-scm-plugin</artifactId>
240 <version>${maven-scm-plugin.version}</version>
241 <configuration>
242 <tag>v${project.version}</tag>
243 <connectionType>developerConnection</connectionType>
244 </configuration>
245 </plugin>
246
Matthias Andreas Benkard143a64b2022-03-01 14:24:12 +0100247 <plugin>
248 <groupId>org.codehaus.mojo</groupId>
249 <artifactId>flatten-maven-plugin</artifactId>
250 <version>${flatten-plugin.version}</version>
251 <executions>
252 <execution>
253 <id>flatten</id>
254 <phase>process-resources</phase>
255 <goals>
256 <goal>flatten</goal>
257 </goals>
258 </execution>
259 <execution>
260 <id>flatten.clean</id>
261 <phase>clean</phase>
262 <goals>
263 <goal>clean</goal>
264 </goals>
265 </execution>
266 </executions>
267 </plugin>
268
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +0100269 <plugin>
Matthias Andreas Benkard40bd44a2023-12-05 21:48:46 +0100270 <groupId>org.codehaus.mojo</groupId>
271 <artifactId>exec-maven-plugin</artifactId>
272 <version>${exec-plugin.version}</version>
273 </plugin>
274
275 <plugin>
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +0100276 <groupId>org.graalvm.buildtools</groupId>
277 <artifactId>native-maven-plugin</artifactId>
278 <version>${native-plugin.version}</version>
279 </plugin>
280
281 <plugin>
282 <groupId>com.github.akman</groupId>
283 <artifactId>jpackage-maven-plugin</artifactId>
284 <version>${jpackage-plugin.version}</version>
285 </plugin>
286
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100287 </plugins>
288
289 </pluginManagement>
290
291 <plugins>
292
293 <plugin>
294 <groupId>com.diffplug.spotless</groupId>
295 <artifactId>spotless-maven-plugin</artifactId>
296 <version>${spotless-plugin.version}</version>
297 <configuration>
298 <java>
299 <removeUnusedImports/>
300 <importOrder>
301 <order>java,javax,org,com,de,io,dagger,eu.mulk,</order>
302 </importOrder>
303 <googleJavaFormat>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100304 <style>GOOGLE</style>
305 </googleJavaFormat>
306 </java>
307 </configuration>
308 </plugin>
309
310 <plugin>
311 <groupId>org.sonatype.plugins</groupId>
312 <artifactId>nexus-staging-maven-plugin</artifactId>
313 <version>${nexus-staging-plugin.version}</version>
314 <extensions>true</extensions>
315 <configuration>
316 <serverId>ossrh</serverId>
317 <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
318 <autoReleaseAfterClose>true</autoReleaseAfterClose>
319 </configuration>
320 </plugin>
321
Matthias Andreas Benkard143a64b2022-03-01 14:24:12 +0100322 <plugin>
323 <groupId>org.codehaus.mojo</groupId>
324 <artifactId>flatten-maven-plugin</artifactId>
325 <configuration>
326 <flattenMode>oss</flattenMode>
327 <flattenDependencyMode>all</flattenDependencyMode>
328 <pomElements>
329 <distributionManagement>flatten</distributionManagement>
330 </pomElements>
331 </configuration>
332 </plugin>
333
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100334 </plugins>
335 </build>
336
337 <profiles>
338
339 <profile>
340 <id>release</id>
341
342 <build>
343 <plugins>
344
345 <plugin>
346 <groupId>org.apache.maven.plugins</groupId>
347 <artifactId>maven-source-plugin</artifactId>
348 <version>${maven-source-plugin.version}</version>
349 <executions>
350 <execution>
351 <id>attach-sources</id>
352 <goals>
353 <goal>jar-no-fork</goal>
354 </goals>
355 </execution>
356 </executions>
357 </plugin>
358
359 <plugin>
360 <groupId>org.apache.maven.plugins</groupId>
361 <artifactId>maven-javadoc-plugin</artifactId>
362 <version>${maven-javadoc-plugin.version}</version>
363 <executions>
364 <execution>
365 <id>attach-javadocs</id>
366 <goals>
367 <goal>jar</goal>
368 </goals>
369 </execution>
370 </executions>
371 </plugin>
372
373 <plugin>
374 <groupId>org.apache.maven.plugins</groupId>
375 <artifactId>maven-gpg-plugin</artifactId>
376 <version>${maven-gpg-plugin.version}</version>
377 <configuration>
378 <keyname>code@mulk.eu</keyname>
379 </configuration>
380 <executions>
381 <execution>
382 <id>sign-artifacts</id>
383 <phase>verify</phase>
384 <goals>
385 <goal>sign</goal>
386 </goals>
387 </execution>
388 </executions>
389 </plugin>
390
391 </plugins>
392 </build>
393 </profile>
394
395 </profiles>
396
397</project>