blob: 5dac0eda124c514bb5d6029d839066279651c642 [file] [log] [blame]
Matthias Andreas Benkard261532a2021-12-12 20:09:27 +01001<?xml version="1.0" encoding="UTF-8"?>
2<project
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"
4 xmlns="http://maven.apache.org/POM/4.0.0"
5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
6
7 <modelVersion>4.0.0</modelVersion>
8
9 <groupId>eu.mulk.jgvariant</groupId>
Matthias Andreas Benkard828cecb2021-12-18 20:34:50 +010010 <version>0.1.4-SNAPSHOT</version>
Matthias Andreas Benkard261532a2021-12-12 20:09:27 +010011
12 <artifactId>jgvariant-core</artifactId>
13 <packaging>jar</packaging>
14
15 <name>JGVariant</name>
16 <url>https://gerrit.benkard.de/plugins/gitiles/jgvariant</url>
17
18 <description>
19 GVariant serialization and deserialization.
20 </description>
21
22 <licenses>
23 <license>
24 <name>GNU Lesser General Public License v3.0 or later</name>
25 <url>https://www.gnu.org/licenses/lgpl-3.0.html</url>
26 </license>
27 </licenses>
28
29 <developers>
30 <developer>
31 <name>Matthias Benkard</name>
32 <email>code@mulk.eu</email>
33 <organization>Matthias Benkard</organization>
34 <organizationUrl>https://matthias.benkard.de</organizationUrl>
35 </developer>
36 </developers>
37
38 <scm>
39 <connection>scm:git:https://gerrit.benkard.de/jgvariant</connection>
40 <developerConnection>scm:git:ssh://gerrit.benkard.de:29418/jgvariant</developerConnection>
41 <url>https://gerrit.benkard.de/plugins/gitiles/jgvariant</url>
42 </scm>
43
44 <properties>
45 <maven.compiler.parameters>true</maven.compiler.parameters>
46 <maven.compiler.release>17</maven.compiler.release>
47
48 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
49 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
50
51 <compiler-plugin.version>3.8.1</compiler-plugin.version>
52 <failsafe-plugin.version>${surefire-plugin.version}</failsafe-plugin.version>
53 <jar-plugin.version>3.2.0</jar-plugin.version>
Matthias Andreas Benkard227fce42021-12-18 10:55:37 +010054 <maven-scm-plugin.version>1.12.0</maven-scm-plugin.version>
Matthias Andreas Benkard261532a2021-12-12 20:09:27 +010055 <maven-gpg-plugin.version>1.5</maven-gpg-plugin.version>
56 <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
57 <maven-source-plugin.version>2.2.1</maven-source-plugin.version>
58 <nexus-staging-plugin.version>1.6.8</nexus-staging-plugin.version>
59 <spotless-plugin.version>2.17.6</spotless-plugin.version>
60 <surefire-plugin.version>3.0.0-M5</surefire-plugin.version>
Matthias Andreas Benkard227fce42021-12-18 10:55:37 +010061 <versions-plugin.version>2.8.1</versions-plugin.version>
Matthias Andreas Benkard261532a2021-12-12 20:09:27 +010062
Matthias Andreas Benkard25b7f902021-12-17 06:02:11 +010063 <apiguardian.version>1.1.2</apiguardian.version>
Matthias Andreas Benkard261532a2021-12-12 20:09:27 +010064 <errorprone.version>2.10.0</errorprone.version>
65 <google-java-format.version>1.13.0</google-java-format.version>
Matthias Andreas Benkard5803c9a2021-12-17 05:58:26 +010066 <jetbrains-annotations.version>22.0.0</jetbrains-annotations.version>
67 <junit-jupiter.version>5.8.2</junit-jupiter.version>
Matthias Andreas Benkard261532a2021-12-12 20:09:27 +010068 </properties>
69
70 <distributionManagement>
71 <snapshotRepository>
72 <id>ossrh</id>
73 <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
74 </snapshotRepository>
75 </distributionManagement>
76
Matthias Andreas Benkard261532a2021-12-12 20:09:27 +010077 <dependencies>
78 <!-- Annotations -->
79 <dependency>
80 <groupId>com.google.errorprone</groupId>
81 <artifactId>error_prone_annotations</artifactId>
Matthias Andreas Benkard4d293072021-12-18 20:30:19 +010082 <version>${errorprone.version}</version>
Matthias Andreas Benkard261532a2021-12-12 20:09:27 +010083 </dependency>
84 <dependency>
85 <groupId>org.jetbrains</groupId>
86 <artifactId>annotations</artifactId>
87 <version>${jetbrains-annotations.version}</version>
Matthias Andreas Benkard261532a2021-12-12 20:09:27 +010088 </dependency>
Matthias Andreas Benkard25b7f902021-12-17 06:02:11 +010089 <dependency>
90 <groupId>org.apiguardian</groupId>
91 <artifactId>apiguardian-api</artifactId>
92 <version>${apiguardian.version}</version>
Matthias Andreas Benkard25b7f902021-12-17 06:02:11 +010093 </dependency>
Matthias Andreas Benkard261532a2021-12-12 20:09:27 +010094
95 <!-- Testing -->
96 <dependency>
97 <groupId>org.junit.jupiter</groupId>
98 <artifactId>junit-jupiter-engine</artifactId>
99 <version>${junit-jupiter.version}</version>
100 <scope>test</scope>
101 </dependency>
102 <dependency>
103 <groupId>org.junit.jupiter</groupId>
104 <artifactId>junit-jupiter-api</artifactId>
105 <version>${junit-jupiter.version}</version>
106 <scope>test</scope>
107 </dependency>
108 </dependencies>
109
110 <build>
111
112 <pluginManagement>
113
114 <plugins>
115
116 <plugin>
117 <artifactId>maven-surefire-plugin</artifactId>
118 <version>${surefire-plugin.version}</version>
Matthias Andreas Benkard8643a272021-12-17 06:53:33 +0100119 <configuration>
120 <argLine>
121 --add-opens eu.mulk.jgvariant.core/eu.mulk.jgvariant.core=ALL-UNNAMED
122 </argLine>
123 </configuration>
Matthias Andreas Benkard261532a2021-12-12 20:09:27 +0100124 </plugin>
125
126 <plugin>
127 <artifactId>maven-failsafe-plugin</artifactId>
128 <version>${failsafe-plugin.version}</version>
Matthias Andreas Benkard8643a272021-12-17 06:53:33 +0100129 <configuration>
130 <argLine>
131 --add-opens eu.mulk.jgvariant.core/eu.mulk.jgvariant.core=ALL-UNNAMED
132 </argLine>
133 </configuration>
Matthias Andreas Benkard261532a2021-12-12 20:09:27 +0100134 </plugin>
135
136 <plugin>
137 <artifactId>maven-compiler-plugin</artifactId>
138 <version>${compiler-plugin.version}</version>
139 <configuration>
140 <fork>true</fork>
141 <compilerArgs>
142 <arg>-XDcompilePolicy=simple</arg>
143 <arg>-Xplugin:ErrorProne</arg>
144 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
145 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg>
146 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg>
147 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED</arg>
148 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</arg>
149 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
150 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg>
151 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg>
152 <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
153 <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg>
154 </compilerArgs>
155 <annotationProcessorPaths>
156 <path>
157 <groupId>com.google.errorprone</groupId>
158 <artifactId>error_prone_core</artifactId>
159 <version>${errorprone.version}</version>
160 </path>
161 </annotationProcessorPaths>
162 </configuration>
163 </plugin>
164
165 <plugin>
166 <artifactId>maven-jar-plugin</artifactId>
167 <version>${jar-plugin.version}</version>
168 </plugin>
169
Matthias Andreas Benkard227fce42021-12-18 10:55:37 +0100170 <plugin>
171 <groupId>org.codehaus.mojo</groupId>
172 <artifactId>versions-maven-plugin</artifactId>
173 <version>${versions-plugin.version}</version>
174 </plugin>
175
176 <plugin>
177 <groupId>org.apache.maven.plugins</groupId>
178 <artifactId>maven-scm-plugin</artifactId>
179 <version>${maven-scm-plugin.version}</version>
180 <configuration>
181 <tag>v${project.version}</tag>
182 <connectionType>developerConnection</connectionType>
183 </configuration>
184 </plugin>
185
Matthias Andreas Benkard261532a2021-12-12 20:09:27 +0100186 </plugins>
187
188 </pluginManagement>
189
190 <plugins>
191
192 <plugin>
193 <groupId>com.diffplug.spotless</groupId>
194 <artifactId>spotless-maven-plugin</artifactId>
195 <version>${spotless-plugin.version}</version>
196 <configuration>
197 <java>
198 <removeUnusedImports/>
199 <importOrder>
200 <order>java,javax,org,com,de,io,dagger,eu.mulk,</order>
201 </importOrder>
202 <googleJavaFormat>
203 <version>${google-java-format.version}</version>
204 <style>GOOGLE</style>
205 </googleJavaFormat>
206 </java>
207 </configuration>
208 </plugin>
209
210 <plugin>
211 <groupId>org.sonatype.plugins</groupId>
212 <artifactId>nexus-staging-maven-plugin</artifactId>
213 <version>${nexus-staging-plugin.version}</version>
214 <extensions>true</extensions>
215 <configuration>
216 <serverId>ossrh</serverId>
217 <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
218 <autoReleaseAfterClose>true</autoReleaseAfterClose>
219 </configuration>
220 </plugin>
221
222 </plugins>
223 </build>
224
225 <profiles>
226
227 <profile>
228 <id>release</id>
229
230 <build>
231 <plugins>
232
233 <plugin>
234 <groupId>org.apache.maven.plugins</groupId>
235 <artifactId>maven-source-plugin</artifactId>
236 <version>${maven-source-plugin.version}</version>
237 <executions>
238 <execution>
239 <id>attach-sources</id>
240 <goals>
241 <goal>jar-no-fork</goal>
242 </goals>
243 </execution>
244 </executions>
245 </plugin>
246
247 <plugin>
248 <groupId>org.apache.maven.plugins</groupId>
249 <artifactId>maven-javadoc-plugin</artifactId>
250 <version>${maven-javadoc-plugin.version}</version>
251 <executions>
252 <execution>
253 <id>attach-javadocs</id>
254 <goals>
255 <goal>jar</goal>
256 </goals>
257 </execution>
258 </executions>
259 </plugin>
260
261 <plugin>
262 <groupId>org.apache.maven.plugins</groupId>
263 <artifactId>maven-gpg-plugin</artifactId>
264 <version>${maven-gpg-plugin.version}</version>
265 <configuration>
266 <keyname>code@mulk.eu</keyname>
267 </configuration>
268 <executions>
269 <execution>
270 <id>sign-artifacts</id>
271 <phase>verify</phase>
272 <goals>
273 <goal>sign</goal>
274 </goals>
275 </execution>
276 </executions>
277 </plugin>
278
279 </plugins>
280 </build>
281 </profile>
282
283 </profiles>
284
285</project>