blob: a0c480513c53b26d5aba325100566d8a347587fc [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 Benkarde14bd1b2021-12-30 21:11:22 +010016 <version>0.1.6-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
58 <compiler-plugin.version>3.8.1</compiler-plugin.version>
59 <failsafe-plugin.version>${surefire-plugin.version}</failsafe-plugin.version>
60 <jar-plugin.version>3.2.0</jar-plugin.version>
61 <maven-scm-plugin.version>1.12.0</maven-scm-plugin.version>
62 <maven-gpg-plugin.version>1.5</maven-gpg-plugin.version>
63 <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
64 <maven-source-plugin.version>2.2.1</maven-source-plugin.version>
65 <nexus-staging-plugin.version>1.6.8</nexus-staging-plugin.version>
66 <spotless-plugin.version>2.17.6</spotless-plugin.version>
67 <surefire-plugin.version>3.0.0-M5</surefire-plugin.version>
68 <versions-plugin.version>2.8.1</versions-plugin.version>
69
70 <apiguardian.version>1.1.2</apiguardian.version>
71 <errorprone.version>2.10.0</errorprone.version>
72 <google-java-format.version>1.13.0</google-java-format.version>
Matthias Andreas Benkard4e8423d2021-12-19 22:56:09 +010073 <inject-resources.version>0.3.0</inject-resources.version>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +010074 <jetbrains-annotations.version>22.0.0</jetbrains-annotations.version>
75 <junit-jupiter.version>5.8.2</junit-jupiter.version>
Matthias Andreas Benkard50a626d2021-12-30 19:13:49 +010076 <xz.version>1.9</xz.version>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +010077 <checker-framework.version>3.21.1</checker-framework.version>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +010078 </properties>
79
80 <distributionManagement>
81 <snapshotRepository>
82 <id>ossrh</id>
83 <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
84 </snapshotRepository>
85 </distributionManagement>
86
87 <dependencyManagement>
88 <dependencies>
89 <!-- Annotations -->
90 <dependency>
91 <groupId>com.google.errorprone</groupId>
92 <artifactId>error_prone_annotations</artifactId>
93 <version>${errorprone.version}</version>
94 </dependency>
95 <dependency>
96 <groupId>org.jetbrains</groupId>
97 <artifactId>annotations</artifactId>
98 <version>${jetbrains-annotations.version}</version>
99 </dependency>
100 <dependency>
101 <groupId>org.apiguardian</groupId>
102 <artifactId>apiguardian-api</artifactId>
103 <version>${apiguardian.version}</version>
104 </dependency>
105
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100106 <!-- Static analysis -->
107 <dependency>
108 <groupId>org.checkerframework</groupId>
109 <artifactId>checker</artifactId>
110 <version>${checker-framework.version}</version>
111 </dependency>
112 <dependency>
113 <groupId>org.checkerframework</groupId>
114 <artifactId>checker-qual</artifactId>
115 <version>${checker-framework.version}</version>
116 </dependency>
117
Matthias Andreas Benkard50a626d2021-12-30 19:13:49 +0100118 <!-- OSTree compression support -->
119 <dependency>
120 <groupId>org.tukaani</groupId>
121 <artifactId>xz</artifactId>
Matthias Andreas Benkarde236b4d2022-03-01 13:51:01 +0100122 <version>${xz.version}</version>
Matthias Andreas Benkard50a626d2021-12-30 19:13:49 +0100123 </dependency>
124
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100125 <!-- Testing -->
126 <dependency>
127 <groupId>org.junit.jupiter</groupId>
128 <artifactId>junit-jupiter-engine</artifactId>
129 <version>${junit-jupiter.version}</version>
130 <scope>test</scope>
131 </dependency>
132 <dependency>
133 <groupId>org.junit.jupiter</groupId>
134 <artifactId>junit-jupiter-api</artifactId>
135 <version>${junit-jupiter.version}</version>
136 <scope>test</scope>
137 </dependency>
Matthias Andreas Benkard4e8423d2021-12-19 22:56:09 +0100138 <dependency>
139 <groupId>io.hosuaby</groupId>
140 <artifactId>inject-resources-junit-jupiter</artifactId>
141 <version>${inject-resources.version}</version>
142 <scope>test</scope>
143 </dependency>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100144 </dependencies>
145 </dependencyManagement>
146
147 <build>
148
149 <pluginManagement>
150
151 <plugins>
152
153 <plugin>
154 <artifactId>maven-surefire-plugin</artifactId>
155 <version>${surefire-plugin.version}</version>
156 <configuration>
157 <argLine>
158 --add-opens eu.mulk.jgvariant.core/eu.mulk.jgvariant.core=ALL-UNNAMED
Matthias Andreas Benkarda7e9d522021-12-28 01:37:47 +0100159 --add-opens eu.mulk.jgvariant.ostree/eu.mulk.jgvariant.ostree=ALL-UNNAMED
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100160 </argLine>
161 </configuration>
162 </plugin>
163
164 <plugin>
165 <artifactId>maven-failsafe-plugin</artifactId>
166 <version>${failsafe-plugin.version}</version>
167 <configuration>
168 <argLine>
169 --add-opens eu.mulk.jgvariant.core/eu.mulk.jgvariant.core=ALL-UNNAMED
Matthias Andreas Benkarda7e9d522021-12-28 01:37:47 +0100170 --add-opens eu.mulk.jgvariant.ostree/eu.mulk.jgvariant.ostree=ALL-UNNAMED
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100171 </argLine>
172 </configuration>
173 </plugin>
174
175 <plugin>
176 <artifactId>maven-compiler-plugin</artifactId>
177 <version>${compiler-plugin.version}</version>
178 <configuration>
179 <fork>true</fork>
180 <compilerArgs>
181 <arg>-XDcompilePolicy=simple</arg>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100182 <arg>-Xplugin:ErrorProne -Xep:InvalidParam:OFF</arg>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100183 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100184 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100185 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg>
186 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg>
187 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED</arg>
188 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</arg>
189 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
190 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg>
191 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg>
192 <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
193 <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg>
194 </compilerArgs>
195 <annotationProcessorPaths>
196 <path>
197 <groupId>com.google.errorprone</groupId>
198 <artifactId>error_prone_core</artifactId>
199 <version>${errorprone.version}</version>
200 </path>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100201 <path>
202 <groupId>org.checkerframework</groupId>
203 <artifactId>checker</artifactId>
204 <version>${checker-framework.version}</version>
205 </path>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100206 </annotationProcessorPaths>
Matthias Andreas Benkard9006e702022-03-01 13:43:50 +0100207 <annotationProcessors>
208 <annotationProcessor>org.checkerframework.checker.nullness.NullnessChecker</annotationProcessor>
209 </annotationProcessors>
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +0100210 </configuration>
211 </plugin>
212
213 <plugin>
214 <artifactId>maven-jar-plugin</artifactId>
215 <version>${jar-plugin.version}</version>
216 </plugin>
217
218 <plugin>
219 <groupId>org.codehaus.mojo</groupId>
220 <artifactId>versions-maven-plugin</artifactId>
221 <version>${versions-plugin.version}</version>
222 </plugin>
223
224 <plugin>
225 <groupId>org.apache.maven.plugins</groupId>
226 <artifactId>maven-scm-plugin</artifactId>
227 <version>${maven-scm-plugin.version}</version>
228 <configuration>
229 <tag>v${project.version}</tag>
230 <connectionType>developerConnection</connectionType>
231 </configuration>
232 </plugin>
233
234 </plugins>
235
236 </pluginManagement>
237
238 <plugins>
239
240 <plugin>
241 <groupId>com.diffplug.spotless</groupId>
242 <artifactId>spotless-maven-plugin</artifactId>
243 <version>${spotless-plugin.version}</version>
244 <configuration>
245 <java>
246 <removeUnusedImports/>
247 <importOrder>
248 <order>java,javax,org,com,de,io,dagger,eu.mulk,</order>
249 </importOrder>
250 <googleJavaFormat>
251 <version>${google-java-format.version}</version>
252 <style>GOOGLE</style>
253 </googleJavaFormat>
254 </java>
255 </configuration>
256 </plugin>
257
258 <plugin>
259 <groupId>org.sonatype.plugins</groupId>
260 <artifactId>nexus-staging-maven-plugin</artifactId>
261 <version>${nexus-staging-plugin.version}</version>
262 <extensions>true</extensions>
263 <configuration>
264 <serverId>ossrh</serverId>
265 <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
266 <autoReleaseAfterClose>true</autoReleaseAfterClose>
267 </configuration>
268 </plugin>
269
270 </plugins>
271 </build>
272
273 <profiles>
274
275 <profile>
276 <id>release</id>
277
278 <build>
279 <plugins>
280
281 <plugin>
282 <groupId>org.apache.maven.plugins</groupId>
283 <artifactId>maven-source-plugin</artifactId>
284 <version>${maven-source-plugin.version}</version>
285 <executions>
286 <execution>
287 <id>attach-sources</id>
288 <goals>
289 <goal>jar-no-fork</goal>
290 </goals>
291 </execution>
292 </executions>
293 </plugin>
294
295 <plugin>
296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-javadoc-plugin</artifactId>
298 <version>${maven-javadoc-plugin.version}</version>
299 <executions>
300 <execution>
301 <id>attach-javadocs</id>
302 <goals>
303 <goal>jar</goal>
304 </goals>
305 </execution>
306 </executions>
307 </plugin>
308
309 <plugin>
310 <groupId>org.apache.maven.plugins</groupId>
311 <artifactId>maven-gpg-plugin</artifactId>
312 <version>${maven-gpg-plugin.version}</version>
313 <configuration>
314 <keyname>code@mulk.eu</keyname>
315 </configuration>
316 <executions>
317 <execution>
318 <id>sign-artifacts</id>
319 <phase>verify</phase>
320 <goals>
321 <goal>sign</goal>
322 </goals>
323 </execution>
324 </executions>
325 </plugin>
326
327 </plugins>
328 </build>
329 </profile>
330
331 </profiles>
332
333</project>