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