blob: 9943ec4234ac4ce30e89d79b91455a5709454e80 [file] [log] [blame]
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +01001<?xml version="1.0"?>
2<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
5 <modelVersion>4.0.0</modelVersion>
6
7 <groupId>eu.mulk</groupId>
8 <artifactId>mulkcms2</artifactId>
9 <version>0.1.0-SNAPSHOT</version>
10
11 <properties>
12 <maven.compiler.parameters>true</maven.compiler.parameters>
13 <maven.compiler.source>11</maven.compiler.source>
14 <maven.compiler.target>11</maven.compiler.target>
15
16 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
18
19 <compiler-plugin.version>3.8.1</compiler-plugin.version>
Matthias Andreas Benkardf7bf7c42020-01-28 22:31:12 +010020 <dockerfile-plugin.version>1.4.13</dockerfile-plugin.version>
Matthias Andreas Benkard2710bf32020-01-25 10:48:07 +010021 <quarkus-plugin.version>1.2.0.Final</quarkus-plugin.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010022 <surefire-plugin.version>3.0.0-M4</surefire-plugin.version>
23 <spotless-plugin.version>1.26.1</spotless-plugin.version>
24
Matthias Andreas Benkard2710bf32020-01-25 10:48:07 +010025 <!-- <quarkus.platform.artifact-id>quarkus-universe-bom</quarkus.platform.artifact-id> -->
26 <quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010027 <quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
Matthias Andreas Benkard2710bf32020-01-25 10:48:07 +010028 <quarkus.platform.version>1.2.0.Final</quarkus.platform.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010029
30 <findbugs-jsr305.version>3.0.2</findbugs-jsr305.version>
Matthias Andreas Benkard06849562020-02-14 20:13:17 +010031 <flexmark.version>0.60.2</flexmark.version>
Matthias Andreas Benkard6fea8132020-02-08 10:17:38 +010032 <hibernate-types.version>2.9.3</hibernate-types.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010033 <jakarta-jacc-api.version>1.6.1</jakarta-jacc-api.version>
34 <jna.version>5.5.0</jna.version>
Matthias Andreas Benkard06849562020-02-14 20:13:17 +010035 <jsoup.version>1.12.2</jsoup.version>
36 <mapstruct.version>1.3.1.Final</mapstruct.version>
Matthias Andreas Benkard981f2792020-02-16 14:54:54 +010037 <rome.version>1.12.2</rome.version>
Matthias Andreas Benkard06849562020-02-14 20:13:17 +010038 <testcontainers.version>1.12.5</testcontainers.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010039 </properties>
40
41 <dependencyManagement>
42 <dependencies>
43
44 <dependency>
45 <groupId>${quarkus.platform.group-id}</groupId>
46 <artifactId>${quarkus.platform.artifact-id}</artifactId>
47 <version>${quarkus.platform.version}</version>
48 <type>pom</type>
49 <scope>import</scope>
50 </dependency>
51
52 <!-- Hibernate PostgreSQL Extra Types -->
53 <dependency>
54 <groupId>com.vladmihalcea</groupId>
55 <artifactId>hibernate-types-52</artifactId>
56 <version>${hibernate-types.version}</version>
57 </dependency>
58
Matthias Andreas Benkard4e29a242020-01-25 05:38:27 +010059 <!-- Jsoup -->
60 <dependency>
61 <groupId>org.jsoup</groupId>
62 <artifactId>jsoup</artifactId>
63 <version>${jsoup.version}</version>
64 </dependency>
65
Matthias Andreas Benkard424e16e2020-02-09 18:29:56 +010066 <!-- FlexMark -->
67 <dependency>
68 <groupId>com.vladsch.flexmark</groupId>
69 <artifactId>flexmark-all</artifactId>
70 <version>${flexmark.version}</version>
71 </dependency>
72
Matthias Andreas Benkard981f2792020-02-16 14:54:54 +010073 <!-- Rome -->
74 <dependency>
75 <groupId>com.rometools</groupId>
76 <artifactId>rome</artifactId>
77 <version>${rome.version}</version>
78 </dependency>
79
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010080 <!-- JNA -->
81 <dependency>
82 <groupId>net.java.dev.jna</groupId>
83 <artifactId>jna</artifactId>
84 <version>${jna.version}</version>
85 </dependency>
86
87 <!-- JACC -->
88 <dependency>
89 <groupId>jakarta.security.jacc</groupId>
90 <artifactId>jakarta.security.jacc-api</artifactId>
91 <version>${jakarta-jacc-api.version}</version>
92 </dependency>
93
Matthias Andreas Benkard2a1383f2020-02-01 23:53:17 +010094 <!-- JOSE for Java -->
95 <dependency>
96 <groupId>org.bitbucket.b_c</groupId>
97 <artifactId>jose4j</artifactId>
98 <version>0.7.0</version>
99 </dependency>
100
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100101 <!-- MapStruct -->
102 <dependency>
103 <groupId>org.mapstruct</groupId>
104 <artifactId>mapstruct</artifactId>
105 <version>${mapstruct.version}</version>
106 </dependency>
107 <dependency>
108 <groupId>org.mapstruct</groupId>
109 <artifactId>mapstruct-processor</artifactId>
110 <version>${mapstruct.version}</version>
111 <scope>provided</scope>
112 </dependency>
113
114 <!-- Annotations -->
115 <dependency>
116 <groupId>com.google.code.findbugs</groupId>
117 <artifactId>jsr305</artifactId>
118 <version>${findbugs-jsr305.version}</version>
119 <scope>provided</scope>
120 </dependency>
121
122 <!-- Testing -->
123 <dependency>
124 <groupId>org.testcontainers</groupId>
125 <artifactId>testcontainers</artifactId>
126 <version>${testcontainers.version}</version>
127 <scope>test</scope>
128 </dependency>
129 <dependency>
130 <groupId>org.testcontainers</groupId>
131 <artifactId>postgresql</artifactId>
132 <version>${testcontainers.version}</version>
133 <scope>test</scope>
134 </dependency>
135
136 </dependencies>
137 </dependencyManagement>
138
139 <dependencies>
140
141 <dependency>
142 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100143 <artifactId>quarkus-agroal</artifactId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100144 </dependency>
145 <dependency>
146 <groupId>io.quarkus</groupId>
Matthias Andreas Benkardc27d1cb2020-01-26 11:11:24 +0100147 <artifactId>quarkus-elytron-security-properties-file</artifactId>
148 </dependency>
149 <dependency>
150 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100151 <artifactId>quarkus-flyway</artifactId>
152 </dependency>
153 <dependency>
154 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100155 <artifactId>quarkus-hibernate-orm-panache</artifactId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100156 </dependency>
157 <dependency>
158 <groupId>io.quarkus</groupId>
159 <artifactId>quarkus-hibernate-validator</artifactId>
160 </dependency>
161 <dependency>
162 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100163 <artifactId>quarkus-jdbc-postgresql</artifactId>
164 </dependency>
165 <dependency>
166 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100167 <artifactId>quarkus-kubernetes</artifactId>
168 </dependency>
169 <dependency>
170 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100171 <artifactId>quarkus-mailer</artifactId>
172 </dependency>
173 <dependency>
174 <groupId>io.quarkus</groupId>
175 <artifactId>quarkus-oidc</artifactId>
176 </dependency>
177 <dependency>
178 <groupId>io.quarkus</groupId>
179 <artifactId>quarkus-resteasy</artifactId>
180 </dependency>
181 <dependency>
182 <groupId>io.quarkus</groupId>
183 <artifactId>quarkus-resteasy-jsonb</artifactId>
184 </dependency>
185 <dependency>
186 <groupId>io.quarkus</groupId>
187 <artifactId>quarkus-resteasy-qute</artifactId>
188 </dependency>
189 <dependency>
190 <groupId>io.quarkus</groupId>
191 <artifactId>quarkus-scheduler</artifactId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100192 </dependency>
Matthias Andreas Benkard2a1383f2020-02-01 23:53:17 +0100193 <dependency>
194 <groupId>io.quarkus</groupId>
195 <artifactId>quarkus-smallrye-jwt</artifactId>
196 </dependency>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100197
198 <!-- JNA -->
199 <dependency>
200 <groupId>net.java.dev.jna</groupId>
201 <artifactId>jna</artifactId>
202 </dependency>
203
204 <!-- JACC -->
205 <dependency>
206 <groupId>jakarta.security.jacc</groupId>
207 <artifactId>jakarta.security.jacc-api</artifactId>
208 </dependency>
209
210 <!-- Hibernate PostgreSQL Extra Types -->
211 <dependency>
212 <groupId>com.vladmihalcea</groupId>
213 <artifactId>hibernate-types-52</artifactId>
214 </dependency>
215
Matthias Andreas Benkard4e29a242020-01-25 05:38:27 +0100216 <!-- Jsoup -->
217 <dependency>
218 <groupId>org.jsoup</groupId>
219 <artifactId>jsoup</artifactId>
220 </dependency>
221
Matthias Andreas Benkard424e16e2020-02-09 18:29:56 +0100222 <!-- FlexMark -->
223 <dependency>
224 <groupId>com.vladsch.flexmark</groupId>
225 <artifactId>flexmark-all</artifactId>
226 </dependency>
227
Matthias Andreas Benkard981f2792020-02-16 14:54:54 +0100228 <!-- Rome -->
229 <dependency>
230 <groupId>com.rometools</groupId>
231 <artifactId>rome</artifactId>
232 </dependency>
233
Matthias Andreas Benkard2a1383f2020-02-01 23:53:17 +0100234 <!-- JOSE for Java -->
235 <dependency>
236 <groupId>org.bitbucket.b_c</groupId>
237 <artifactId>jose4j</artifactId>
238 </dependency>
239
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100240 <!-- MapStruct -->
241 <dependency>
242 <groupId>org.mapstruct</groupId>
243 <artifactId>mapstruct</artifactId>
244 </dependency>
245 <dependency>
246 <groupId>org.mapstruct</groupId>
247 <artifactId>mapstruct-processor</artifactId>
248 <scope>provided</scope>
249 </dependency>
250
251 <!-- Annotations -->
252 <dependency>
253 <groupId>com.google.code.findbugs</groupId>
254 <artifactId>jsr305</artifactId>
255 <scope>provided</scope>
256 </dependency>
257
258 <!-- Testing -->
259 <dependency>
260 <groupId>io.quarkus</groupId>
261 <artifactId>quarkus-junit5</artifactId>
262 <scope>test</scope>
263 </dependency>
264 <dependency>
265 <groupId>io.rest-assured</groupId>
266 <artifactId>rest-assured</artifactId>
267 <scope>test</scope>
268 </dependency>
269 <dependency>
270 <groupId>org.testcontainers</groupId>
271 <artifactId>junit-jupiter</artifactId>
272 <scope>test</scope>
273 </dependency>
274 <dependency>
275 <groupId>org.testcontainers</groupId>
276 <artifactId>testcontainers</artifactId>
277 <scope>test</scope>
278 </dependency>
279 <dependency>
280 <groupId>org.testcontainers</groupId>
281 <artifactId>postgresql</artifactId>
282 <scope>test</scope>
283 </dependency>
284
285 </dependencies>
286
287 <build>
288
289 <plugins>
290
291 <plugin>
292 <groupId>io.quarkus</groupId>
293 <artifactId>quarkus-maven-plugin</artifactId>
294 <version>${quarkus-plugin.version}</version>
295 <executions>
296 <execution>
297 <goals>
298 <goal>build</goal>
299 </goals>
300 </execution>
301 </executions>
302 </plugin>
303
304 <plugin>
305 <artifactId>maven-compiler-plugin</artifactId>
306 <version>${compiler-plugin.version}</version>
307 </plugin>
308
309 <plugin>
310 <artifactId>maven-surefire-plugin</artifactId>
311 <version>${surefire-plugin.version}</version>
312 <configuration>
313 <systemProperties>
314 <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
315 <compilerArgs>
316 <compilerArg>-Amapstruct.defaultComponentModel=cdi</compilerArg>
317 </compilerArgs>
318 </systemProperties>
319 </configuration>
320 </plugin>
321
322 <!-- Google Java Code Formatter, for enforcing style conventions -->
323 <plugin>
324 <groupId>com.diffplug.spotless</groupId>
325 <artifactId>spotless-maven-plugin</artifactId>
326 <version>${spotless-plugin.version}</version>
327 <configuration>
328 <java>
329 <removeUnusedImports/>
330 <importOrder>
331 <order>java,javax,org,com,de,io,dagger,eu.mulk,</order>
332 </importOrder>
333 <googleJavaFormat>
334 <version>${google.java.format.version}</version>
335 <style>GOOGLE</style>
336 </googleJavaFormat>
337 </java>
338 </configuration>
339 </plugin>
Matthias Andreas Benkardf7bf7c42020-01-28 22:31:12 +0100340
341 <plugin>
342 <groupId>com.spotify</groupId>
343 <artifactId>dockerfile-maven-plugin</artifactId>
344 <version>${dockerfile-plugin.version}</version>
345 <executions>
346 <execution>
347 <id>default</id>
348 <goals>
349 <goal>build</goal>
350 <goal>push</goal>
351 </goals>
352 </execution>
353 </executions>
354 <configuration>
355 <dockerfile>src/main/docker/Dockerfile.jvm</dockerfile>
356 <repository>docker.benkard.de/mulk/mulkcms2</repository>
357 <tag>${project.version}</tag>
358 </configuration>
359 </plugin>
360
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100361 </plugins>
362
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100363 <resources>
364 <resource>
365 <directory>src/main/resources</directory>
366 <excludes>
367 <exclude>META-INF/resources/node_modules/**/*</exclude>
Matthias Andreas Benkard97130f92020-01-27 21:03:39 +0100368 <exclude>META-INF/resources/package.json</exclude>
369 <exclude>META-INF/resources/yarn.lock</exclude>
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100370 </excludes>
371 <filtering>false</filtering>
372 </resource>
373 </resources>
374
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100375 </build>
376
377 <profiles>
378
379 <profile>
380
381 <id>native</id>
382
383 <activation>
384 <property>
385 <name>native</name>
386 </property>
387 </activation>
388
389 <build>
390 <plugins>
391 <plugin>
392 <artifactId>maven-failsafe-plugin</artifactId>
393 <version>${surefire-plugin.version}</version>
394 <executions>
395 <execution>
396 <goals>
397 <goal>integration-test</goal>
398 <goal>verify</goal>
399 </goals>
400 <configuration>
401 <systemProperties>
402 <native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
403 </systemProperties>
404 </configuration>
405 </execution>
406 </executions>
407 </plugin>
408 </plugins>
409 </build>
410
411 <properties>
412 <quarkus.package.type>native</quarkus.package.type>
413 </properties>
414
415 </profile>
416
417 </profiles>
418
419</project>