blob: 5444b7df199848318bde4246d4a866b698862e72 [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 Benkardce8df372023-12-07 19:36:08 +0100195 <parameters>true</parameters>
Matthias Andreas Benkard91dbd742022-10-17 19:38:56 +0200196 <showWarnings>true</showWarnings>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100197 <compilerArgs>
198 <arg>-XDcompilePolicy=simple</arg>
Matthias Benkardd0d05c32023-01-12 18:54:04 +0000199 <arg>-Xplugin:ErrorProne -Xep:InvalidParam:OFF -XepOpt:NullAway:AnnotatedPackages=eu.mulk</arg>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100200 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100201 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100202 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg>
203 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg>
204 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED</arg>
205 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</arg>
206 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
207 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg>
208 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg>
209 <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
210 <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg>
211 </compilerArgs>
212 <annotationProcessorPaths>
213 <path>
214 <groupId>com.google.errorprone</groupId>
215 <artifactId>error_prone_core</artifactId>
216 <version>${errorprone.version}</version>
217 </path>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100218 <path>
Matthias Andreas Benkard91dbd742022-10-17 19:38:56 +0200219 <groupId>com.uber.nullaway</groupId>
220 <artifactId>nullaway</artifactId>
221 <version>${nullaway.version}</version>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100222 </path>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100223 </annotationProcessorPaths>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100224 </configuration>
225 </plugin>
226
227 <plugin>
228 <artifactId>maven-jar-plugin</artifactId>
229 <version>${jar-plugin.version}</version>
230 </plugin>
231
232 <plugin>
233 <groupId>org.codehaus.mojo</groupId>
234 <artifactId>versions-maven-plugin</artifactId>
235 <version>${versions-plugin.version}</version>
236 </plugin>
237
238 <plugin>
239 <groupId>org.apache.maven.plugins</groupId>
240 <artifactId>maven-scm-plugin</artifactId>
241 <version>${maven-scm-plugin.version}</version>
242 <configuration>
243 <tag>v${project.version}</tag>
244 <connectionType>developerConnection</connectionType>
245 </configuration>
246 </plugin>
247
Matthias Andreas Benkard143a64b2022-03-01 14:24:12 +0100248 <plugin>
249 <groupId>org.codehaus.mojo</groupId>
250 <artifactId>flatten-maven-plugin</artifactId>
251 <version>${flatten-plugin.version}</version>
252 <executions>
253 <execution>
254 <id>flatten</id>
255 <phase>process-resources</phase>
256 <goals>
257 <goal>flatten</goal>
258 </goals>
259 </execution>
260 <execution>
261 <id>flatten.clean</id>
262 <phase>clean</phase>
263 <goals>
264 <goal>clean</goal>
265 </goals>
266 </execution>
267 </executions>
268 </plugin>
269
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +0100270 <plugin>
Matthias Andreas Benkard40bd44a2023-12-05 21:48:46 +0100271 <groupId>org.codehaus.mojo</groupId>
272 <artifactId>exec-maven-plugin</artifactId>
273 <version>${exec-plugin.version}</version>
274 </plugin>
275
276 <plugin>
Matthias Andreas Benkarda1e84432023-12-05 21:12:16 +0100277 <groupId>org.graalvm.buildtools</groupId>
278 <artifactId>native-maven-plugin</artifactId>
279 <version>${native-plugin.version}</version>
280 </plugin>
281
282 <plugin>
283 <groupId>com.github.akman</groupId>
284 <artifactId>jpackage-maven-plugin</artifactId>
285 <version>${jpackage-plugin.version}</version>
286 </plugin>
287
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100288 </plugins>
289
290 </pluginManagement>
291
292 <plugins>
293
294 <plugin>
295 <groupId>com.diffplug.spotless</groupId>
296 <artifactId>spotless-maven-plugin</artifactId>
297 <version>${spotless-plugin.version}</version>
298 <configuration>
299 <java>
300 <removeUnusedImports/>
301 <importOrder>
302 <order>java,javax,org,com,de,io,dagger,eu.mulk,</order>
303 </importOrder>
304 <googleJavaFormat>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100305 <style>GOOGLE</style>
306 </googleJavaFormat>
307 </java>
308 </configuration>
309 </plugin>
310
311 <plugin>
312 <groupId>org.sonatype.plugins</groupId>
313 <artifactId>nexus-staging-maven-plugin</artifactId>
314 <version>${nexus-staging-plugin.version}</version>
315 <extensions>true</extensions>
316 <configuration>
317 <serverId>ossrh</serverId>
318 <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
319 <autoReleaseAfterClose>true</autoReleaseAfterClose>
320 </configuration>
321 </plugin>
322
Matthias Andreas Benkard143a64b2022-03-01 14:24:12 +0100323 <plugin>
324 <groupId>org.codehaus.mojo</groupId>
325 <artifactId>flatten-maven-plugin</artifactId>
326 <configuration>
327 <flattenMode>oss</flattenMode>
328 <flattenDependencyMode>all</flattenDependencyMode>
329 <pomElements>
330 <distributionManagement>flatten</distributionManagement>
331 </pomElements>
332 </configuration>
333 </plugin>
334
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100335 </plugins>
336 </build>
337
338 <profiles>
339
340 <profile>
341 <id>release</id>
342
343 <build>
344 <plugins>
345
346 <plugin>
347 <groupId>org.apache.maven.plugins</groupId>
348 <artifactId>maven-source-plugin</artifactId>
349 <version>${maven-source-plugin.version}</version>
350 <executions>
351 <execution>
352 <id>attach-sources</id>
353 <goals>
354 <goal>jar-no-fork</goal>
355 </goals>
356 </execution>
357 </executions>
358 </plugin>
359
360 <plugin>
361 <groupId>org.apache.maven.plugins</groupId>
362 <artifactId>maven-javadoc-plugin</artifactId>
363 <version>${maven-javadoc-plugin.version}</version>
364 <executions>
365 <execution>
366 <id>attach-javadocs</id>
367 <goals>
368 <goal>jar</goal>
369 </goals>
370 </execution>
371 </executions>
372 </plugin>
373
374 <plugin>
375 <groupId>org.apache.maven.plugins</groupId>
376 <artifactId>maven-gpg-plugin</artifactId>
377 <version>${maven-gpg-plugin.version}</version>
378 <configuration>
379 <keyname>code@mulk.eu</keyname>
380 </configuration>
381 <executions>
382 <execution>
383 <id>sign-artifacts</id>
384 <phase>verify</phase>
385 <goals>
386 <goal>sign</goal>
387 </goals>
388 </execution>
389 </executions>
390 </plugin>
391
392 </plugins>
393 </build>
394 </profile>
395
396 </profiles>
397
398</project>