blob: f91339aadef4a087f189e95d5027873f496b15a9 [file] [log] [blame]
Matthias Andreas Benkard796b19d2021-12-18 23:38:46 +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 <version>0.1.4-SNAPSHOT</version>
10
11 <groupId>eu.mulk.jgvariant</groupId>
12 <artifactId>jgvariant-parent</artifactId>
13 <packaging>pom</packaging>
14
15 <name>JGVariant Parent</name>
16 <url>https://gerrit.benkard.de/plugins/gitiles/jgvariant</url>
17
18 <description>
19 Parent POM of the JGVariant library.
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-scm-plugin.version>1.12.0</maven-scm-plugin.version>
55 <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>
61 <versions-plugin.version>2.8.1</versions-plugin.version>
62
63 <apiguardian.version>1.1.2</apiguardian.version>
64 <errorprone.version>2.10.0</errorprone.version>
65 <google-java-format.version>1.13.0</google-java-format.version>
66 <jetbrains-annotations.version>22.0.0</jetbrains-annotations.version>
67 <junit-jupiter.version>5.8.2</junit-jupiter.version>
68 </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
77 <dependencyManagement>
78 <dependencies>
79 <!-- Annotations -->
80 <dependency>
81 <groupId>com.google.errorprone</groupId>
82 <artifactId>error_prone_annotations</artifactId>
83 <version>${errorprone.version}</version>
84 </dependency>
85 <dependency>
86 <groupId>org.jetbrains</groupId>
87 <artifactId>annotations</artifactId>
88 <version>${jetbrains-annotations.version}</version>
89 </dependency>
90 <dependency>
91 <groupId>org.apiguardian</groupId>
92 <artifactId>apiguardian-api</artifactId>
93 <version>${apiguardian.version}</version>
94 </dependency>
95
96 <!-- Testing -->
97 <dependency>
98 <groupId>org.junit.jupiter</groupId>
99 <artifactId>junit-jupiter-engine</artifactId>
100 <version>${junit-jupiter.version}</version>
101 <scope>test</scope>
102 </dependency>
103 <dependency>
104 <groupId>org.junit.jupiter</groupId>
105 <artifactId>junit-jupiter-api</artifactId>
106 <version>${junit-jupiter.version}</version>
107 <scope>test</scope>
108 </dependency>
109 </dependencies>
110 </dependencyManagement>
111
112 <build>
113
114 <pluginManagement>
115
116 <plugins>
117
118 <plugin>
119 <artifactId>maven-surefire-plugin</artifactId>
120 <version>${surefire-plugin.version}</version>
121 <configuration>
122 <argLine>
123 --add-opens eu.mulk.jgvariant.core/eu.mulk.jgvariant.core=ALL-UNNAMED
124 </argLine>
125 </configuration>
126 </plugin>
127
128 <plugin>
129 <artifactId>maven-failsafe-plugin</artifactId>
130 <version>${failsafe-plugin.version}</version>
131 <configuration>
132 <argLine>
133 --add-opens eu.mulk.jgvariant.core/eu.mulk.jgvariant.core=ALL-UNNAMED
134 </argLine>
135 </configuration>
136 </plugin>
137
138 <plugin>
139 <artifactId>maven-compiler-plugin</artifactId>
140 <version>${compiler-plugin.version}</version>
141 <configuration>
142 <fork>true</fork>
143 <compilerArgs>
144 <arg>-XDcompilePolicy=simple</arg>
145 <arg>-Xplugin:ErrorProne</arg>
146 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
147 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg>
148 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg>
149 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED</arg>
150 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</arg>
151 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
152 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg>
153 <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg>
154 <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
155 <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg>
156 </compilerArgs>
157 <annotationProcessorPaths>
158 <path>
159 <groupId>com.google.errorprone</groupId>
160 <artifactId>error_prone_core</artifactId>
161 <version>${errorprone.version}</version>
162 </path>
163 </annotationProcessorPaths>
164 </configuration>
165 </plugin>
166
167 <plugin>
168 <artifactId>maven-jar-plugin</artifactId>
169 <version>${jar-plugin.version}</version>
170 </plugin>
171
172 <plugin>
173 <groupId>org.codehaus.mojo</groupId>
174 <artifactId>versions-maven-plugin</artifactId>
175 <version>${versions-plugin.version}</version>
176 </plugin>
177
178 <plugin>
179 <groupId>org.apache.maven.plugins</groupId>
180 <artifactId>maven-scm-plugin</artifactId>
181 <version>${maven-scm-plugin.version}</version>
182 <configuration>
183 <tag>v${project.version}</tag>
184 <connectionType>developerConnection</connectionType>
185 </configuration>
186 </plugin>
187
188 </plugins>
189
190 </pluginManagement>
191
192 <plugins>
193
194 <plugin>
195 <groupId>com.diffplug.spotless</groupId>
196 <artifactId>spotless-maven-plugin</artifactId>
197 <version>${spotless-plugin.version}</version>
198 <configuration>
199 <java>
200 <removeUnusedImports/>
201 <importOrder>
202 <order>java,javax,org,com,de,io,dagger,eu.mulk,</order>
203 </importOrder>
204 <googleJavaFormat>
205 <version>${google-java-format.version}</version>
206 <style>GOOGLE</style>
207 </googleJavaFormat>
208 </java>
209 </configuration>
210 </plugin>
211
212 <plugin>
213 <groupId>org.sonatype.plugins</groupId>
214 <artifactId>nexus-staging-maven-plugin</artifactId>
215 <version>${nexus-staging-plugin.version}</version>
216 <extensions>true</extensions>
217 <configuration>
218 <serverId>ossrh</serverId>
219 <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
220 <autoReleaseAfterClose>true</autoReleaseAfterClose>
221 </configuration>
222 </plugin>
223
224 </plugins>
225 </build>
226
227 <profiles>
228
229 <profile>
230 <id>release</id>
231
232 <build>
233 <plugins>
234
235 <plugin>
236 <groupId>org.apache.maven.plugins</groupId>
237 <artifactId>maven-source-plugin</artifactId>
238 <version>${maven-source-plugin.version}</version>
239 <executions>
240 <execution>
241 <id>attach-sources</id>
242 <goals>
243 <goal>jar-no-fork</goal>
244 </goals>
245 </execution>
246 </executions>
247 </plugin>
248
249 <plugin>
250 <groupId>org.apache.maven.plugins</groupId>
251 <artifactId>maven-javadoc-plugin</artifactId>
252 <version>${maven-javadoc-plugin.version}</version>
253 <executions>
254 <execution>
255 <id>attach-javadocs</id>
256 <goals>
257 <goal>jar</goal>
258 </goals>
259 </execution>
260 </executions>
261 </plugin>
262
263 <plugin>
264 <groupId>org.apache.maven.plugins</groupId>
265 <artifactId>maven-gpg-plugin</artifactId>
266 <version>${maven-gpg-plugin.version}</version>
267 <configuration>
268 <keyname>code@mulk.eu</keyname>
269 </configuration>
270 <executions>
271 <execution>
272 <id>sign-artifacts</id>
273 <phase>verify</phase>
274 <goals>
275 <goal>sign</goal>
276 </goals>
277 </execution>
278 </executions>
279 </plugin>
280
281 </plugins>
282 </build>
283 </profile>
284
285 </profiles>
286
287</project>