blob: 1623195525578117a81990873df914cd94b175dd [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>
10 <version>0.1.0-SNAPSHOT</version>
11
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>
54 <maven-gpg-plugin.version>1.5</maven-gpg-plugin.version>
55 <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
56 <maven-source-plugin.version>2.2.1</maven-source-plugin.version>
57 <nexus-staging-plugin.version>1.6.8</nexus-staging-plugin.version>
58 <spotless-plugin.version>2.17.6</spotless-plugin.version>
59 <surefire-plugin.version>3.0.0-M5</surefire-plugin.version>
60
Matthias Andreas Benkard25b7f902021-12-17 06:02:11 +010061 <apiguardian.version>1.1.2</apiguardian.version>
Matthias Andreas Benkard261532a2021-12-12 20:09:27 +010062 <errorprone.version>2.10.0</errorprone.version>
63 <google-java-format.version>1.13.0</google-java-format.version>
Matthias Andreas Benkard5803c9a2021-12-17 05:58:26 +010064 <jetbrains-annotations.version>22.0.0</jetbrains-annotations.version>
65 <junit-jupiter.version>5.8.2</junit-jupiter.version>
Matthias Andreas Benkard261532a2021-12-12 20:09:27 +010066 </properties>
67
68 <distributionManagement>
69 <snapshotRepository>
70 <id>ossrh</id>
71 <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
72 </snapshotRepository>
73 </distributionManagement>
74
75 <dependencyManagement>
76 <dependencies>
77 <dependency>
78 <groupId>com.google.errorprone</groupId>
79 <artifactId>error_prone_annotations</artifactId>
80 <version>${errorprone.version}</version>
81 </dependency>
82 </dependencies>
83 </dependencyManagement>
84
85 <dependencies>
86 <!-- Annotations -->
87 <dependency>
88 <groupId>com.google.errorprone</groupId>
89 <artifactId>error_prone_annotations</artifactId>
90 <optional>true</optional>
91 </dependency>
92 <dependency>
93 <groupId>org.jetbrains</groupId>
94 <artifactId>annotations</artifactId>
95 <version>${jetbrains-annotations.version}</version>
96 <optional>true</optional>
97 </dependency>
Matthias Andreas Benkard25b7f902021-12-17 06:02:11 +010098 <dependency>
99 <groupId>org.apiguardian</groupId>
100 <artifactId>apiguardian-api</artifactId>
101 <version>${apiguardian.version}</version>
102 <optional>true</optional>
103 </dependency>
Matthias Andreas Benkard261532a2021-12-12 20:09:27 +0100104
105 <!-- Testing -->
106 <dependency>
107 <groupId>org.junit.jupiter</groupId>
108 <artifactId>junit-jupiter-engine</artifactId>
109 <version>${junit-jupiter.version}</version>
110 <scope>test</scope>
111 </dependency>
112 <dependency>
113 <groupId>org.junit.jupiter</groupId>
114 <artifactId>junit-jupiter-api</artifactId>
115 <version>${junit-jupiter.version}</version>
116 <scope>test</scope>
117 </dependency>
118 </dependencies>
119
120 <build>
121
122 <pluginManagement>
123
124 <plugins>
125
126 <plugin>
127 <artifactId>maven-surefire-plugin</artifactId>
128 <version>${surefire-plugin.version}</version>
129 </plugin>
130
131 <plugin>
132 <artifactId>maven-failsafe-plugin</artifactId>
133 <version>${failsafe-plugin.version}</version>
134 </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
170 </plugins>
171
172 </pluginManagement>
173
174 <plugins>
175
176 <plugin>
177 <groupId>com.diffplug.spotless</groupId>
178 <artifactId>spotless-maven-plugin</artifactId>
179 <version>${spotless-plugin.version}</version>
180 <configuration>
181 <java>
182 <removeUnusedImports/>
183 <importOrder>
184 <order>java,javax,org,com,de,io,dagger,eu.mulk,</order>
185 </importOrder>
186 <googleJavaFormat>
187 <version>${google-java-format.version}</version>
188 <style>GOOGLE</style>
189 </googleJavaFormat>
190 </java>
191 </configuration>
192 </plugin>
193
194 <plugin>
195 <groupId>org.sonatype.plugins</groupId>
196 <artifactId>nexus-staging-maven-plugin</artifactId>
197 <version>${nexus-staging-plugin.version}</version>
198 <extensions>true</extensions>
199 <configuration>
200 <serverId>ossrh</serverId>
201 <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
202 <autoReleaseAfterClose>true</autoReleaseAfterClose>
203 </configuration>
204 </plugin>
205
206 </plugins>
207 </build>
208
209 <profiles>
210
211 <profile>
212 <id>release</id>
213
214 <build>
215 <plugins>
216
217 <plugin>
218 <groupId>org.apache.maven.plugins</groupId>
219 <artifactId>maven-source-plugin</artifactId>
220 <version>${maven-source-plugin.version}</version>
221 <executions>
222 <execution>
223 <id>attach-sources</id>
224 <goals>
225 <goal>jar-no-fork</goal>
226 </goals>
227 </execution>
228 </executions>
229 </plugin>
230
231 <plugin>
232 <groupId>org.apache.maven.plugins</groupId>
233 <artifactId>maven-javadoc-plugin</artifactId>
234 <version>${maven-javadoc-plugin.version}</version>
235 <executions>
236 <execution>
237 <id>attach-javadocs</id>
238 <goals>
239 <goal>jar</goal>
240 </goals>
241 </execution>
242 </executions>
243 </plugin>
244
245 <plugin>
246 <groupId>org.apache.maven.plugins</groupId>
247 <artifactId>maven-gpg-plugin</artifactId>
248 <version>${maven-gpg-plugin.version}</version>
249 <configuration>
250 <keyname>code@mulk.eu</keyname>
251 </configuration>
252 <executions>
253 <execution>
254 <id>sign-artifacts</id>
255 <phase>verify</phase>
256 <goals>
257 <goal>sign</goal>
258 </goals>
259 </execution>
260 </executions>
261 </plugin>
262
263 </plugins>
264 </build>
265 </profile>
266
267 </profiles>
268
269</project>