blob: a20aed5f0e3bda31b46e7ab09067dbf748a88d17 [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>
31 <hibernate-types.version>2.9.2</hibernate-types.version>
32 <mapstruct.version>1.3.1.Final</mapstruct.version>
Matthias Andreas Benkard2710bf32020-01-25 10:48:07 +010033 <testcontainers.version>1.12.5</testcontainers.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010034 <jakarta-jacc-api.version>1.6.1</jakarta-jacc-api.version>
35 <jna.version>5.5.0</jna.version>
Matthias Andreas Benkard4e29a242020-01-25 05:38:27 +010036 <jsoup.version>1.12.1</jsoup.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010037 </properties>
38
39 <dependencyManagement>
40 <dependencies>
41
42 <dependency>
43 <groupId>${quarkus.platform.group-id}</groupId>
44 <artifactId>${quarkus.platform.artifact-id}</artifactId>
45 <version>${quarkus.platform.version}</version>
46 <type>pom</type>
47 <scope>import</scope>
48 </dependency>
49
50 <!-- Hibernate PostgreSQL Extra Types -->
51 <dependency>
52 <groupId>com.vladmihalcea</groupId>
53 <artifactId>hibernate-types-52</artifactId>
54 <version>${hibernate-types.version}</version>
55 </dependency>
56
Matthias Andreas Benkard4e29a242020-01-25 05:38:27 +010057 <!-- Jsoup -->
58 <dependency>
59 <groupId>org.jsoup</groupId>
60 <artifactId>jsoup</artifactId>
61 <version>${jsoup.version}</version>
62 </dependency>
63
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010064 <!-- JNA -->
65 <dependency>
66 <groupId>net.java.dev.jna</groupId>
67 <artifactId>jna</artifactId>
68 <version>${jna.version}</version>
69 </dependency>
70
71 <!-- JACC -->
72 <dependency>
73 <groupId>jakarta.security.jacc</groupId>
74 <artifactId>jakarta.security.jacc-api</artifactId>
75 <version>${jakarta-jacc-api.version}</version>
76 </dependency>
77
78 <!-- MapStruct -->
79 <dependency>
80 <groupId>org.mapstruct</groupId>
81 <artifactId>mapstruct</artifactId>
82 <version>${mapstruct.version}</version>
83 </dependency>
84 <dependency>
85 <groupId>org.mapstruct</groupId>
86 <artifactId>mapstruct-processor</artifactId>
87 <version>${mapstruct.version}</version>
88 <scope>provided</scope>
89 </dependency>
90
91 <!-- Annotations -->
92 <dependency>
93 <groupId>com.google.code.findbugs</groupId>
94 <artifactId>jsr305</artifactId>
95 <version>${findbugs-jsr305.version}</version>
96 <scope>provided</scope>
97 </dependency>
98
99 <!-- Testing -->
100 <dependency>
101 <groupId>org.testcontainers</groupId>
102 <artifactId>testcontainers</artifactId>
103 <version>${testcontainers.version}</version>
104 <scope>test</scope>
105 </dependency>
106 <dependency>
107 <groupId>org.testcontainers</groupId>
108 <artifactId>postgresql</artifactId>
109 <version>${testcontainers.version}</version>
110 <scope>test</scope>
111 </dependency>
112
113 </dependencies>
114 </dependencyManagement>
115
116 <dependencies>
117
118 <dependency>
119 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100120 <artifactId>quarkus-agroal</artifactId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100121 </dependency>
122 <dependency>
123 <groupId>io.quarkus</groupId>
Matthias Andreas Benkardc27d1cb2020-01-26 11:11:24 +0100124 <artifactId>quarkus-elytron-security-properties-file</artifactId>
125 </dependency>
126 <dependency>
127 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100128 <artifactId>quarkus-flyway</artifactId>
129 </dependency>
130 <dependency>
131 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100132 <artifactId>quarkus-hibernate-orm-panache</artifactId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100133 </dependency>
134 <dependency>
135 <groupId>io.quarkus</groupId>
136 <artifactId>quarkus-hibernate-validator</artifactId>
137 </dependency>
138 <dependency>
139 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100140 <artifactId>quarkus-jdbc-postgresql</artifactId>
141 </dependency>
142 <dependency>
143 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100144 <artifactId>quarkus-kubernetes</artifactId>
145 </dependency>
146 <dependency>
147 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100148 <artifactId>quarkus-mailer</artifactId>
149 </dependency>
150 <dependency>
151 <groupId>io.quarkus</groupId>
152 <artifactId>quarkus-oidc</artifactId>
153 </dependency>
154 <dependency>
155 <groupId>io.quarkus</groupId>
156 <artifactId>quarkus-resteasy</artifactId>
157 </dependency>
158 <dependency>
159 <groupId>io.quarkus</groupId>
160 <artifactId>quarkus-resteasy-jsonb</artifactId>
161 </dependency>
162 <dependency>
163 <groupId>io.quarkus</groupId>
164 <artifactId>quarkus-resteasy-qute</artifactId>
165 </dependency>
166 <dependency>
167 <groupId>io.quarkus</groupId>
168 <artifactId>quarkus-scheduler</artifactId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100169 </dependency>
170
171 <!-- JNA -->
172 <dependency>
173 <groupId>net.java.dev.jna</groupId>
174 <artifactId>jna</artifactId>
175 </dependency>
176
177 <!-- JACC -->
178 <dependency>
179 <groupId>jakarta.security.jacc</groupId>
180 <artifactId>jakarta.security.jacc-api</artifactId>
181 </dependency>
182
183 <!-- Hibernate PostgreSQL Extra Types -->
184 <dependency>
185 <groupId>com.vladmihalcea</groupId>
186 <artifactId>hibernate-types-52</artifactId>
187 </dependency>
188
Matthias Andreas Benkard4e29a242020-01-25 05:38:27 +0100189 <!-- Jsoup -->
190 <dependency>
191 <groupId>org.jsoup</groupId>
192 <artifactId>jsoup</artifactId>
193 </dependency>
194
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100195 <!-- MapStruct -->
196 <dependency>
197 <groupId>org.mapstruct</groupId>
198 <artifactId>mapstruct</artifactId>
199 </dependency>
200 <dependency>
201 <groupId>org.mapstruct</groupId>
202 <artifactId>mapstruct-processor</artifactId>
203 <scope>provided</scope>
204 </dependency>
205
206 <!-- Annotations -->
207 <dependency>
208 <groupId>com.google.code.findbugs</groupId>
209 <artifactId>jsr305</artifactId>
210 <scope>provided</scope>
211 </dependency>
212
213 <!-- Testing -->
214 <dependency>
215 <groupId>io.quarkus</groupId>
216 <artifactId>quarkus-junit5</artifactId>
217 <scope>test</scope>
218 </dependency>
219 <dependency>
220 <groupId>io.rest-assured</groupId>
221 <artifactId>rest-assured</artifactId>
222 <scope>test</scope>
223 </dependency>
224 <dependency>
225 <groupId>org.testcontainers</groupId>
226 <artifactId>junit-jupiter</artifactId>
227 <scope>test</scope>
228 </dependency>
229 <dependency>
230 <groupId>org.testcontainers</groupId>
231 <artifactId>testcontainers</artifactId>
232 <scope>test</scope>
233 </dependency>
234 <dependency>
235 <groupId>org.testcontainers</groupId>
236 <artifactId>postgresql</artifactId>
237 <scope>test</scope>
238 </dependency>
239
240 </dependencies>
241
242 <build>
243
244 <plugins>
245
246 <plugin>
247 <groupId>io.quarkus</groupId>
248 <artifactId>quarkus-maven-plugin</artifactId>
249 <version>${quarkus-plugin.version}</version>
250 <executions>
251 <execution>
252 <goals>
253 <goal>build</goal>
254 </goals>
255 </execution>
256 </executions>
257 </plugin>
258
259 <plugin>
260 <artifactId>maven-compiler-plugin</artifactId>
261 <version>${compiler-plugin.version}</version>
262 </plugin>
263
264 <plugin>
265 <artifactId>maven-surefire-plugin</artifactId>
266 <version>${surefire-plugin.version}</version>
267 <configuration>
268 <systemProperties>
269 <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
270 <compilerArgs>
271 <compilerArg>-Amapstruct.defaultComponentModel=cdi</compilerArg>
272 </compilerArgs>
273 </systemProperties>
274 </configuration>
275 </plugin>
276
277 <!-- Google Java Code Formatter, for enforcing style conventions -->
278 <plugin>
279 <groupId>com.diffplug.spotless</groupId>
280 <artifactId>spotless-maven-plugin</artifactId>
281 <version>${spotless-plugin.version}</version>
282 <configuration>
283 <java>
284 <removeUnusedImports/>
285 <importOrder>
286 <order>java,javax,org,com,de,io,dagger,eu.mulk,</order>
287 </importOrder>
288 <googleJavaFormat>
289 <version>${google.java.format.version}</version>
290 <style>GOOGLE</style>
291 </googleJavaFormat>
292 </java>
293 </configuration>
294 </plugin>
Matthias Andreas Benkardf7bf7c42020-01-28 22:31:12 +0100295
296 <plugin>
297 <groupId>com.spotify</groupId>
298 <artifactId>dockerfile-maven-plugin</artifactId>
299 <version>${dockerfile-plugin.version}</version>
300 <executions>
301 <execution>
302 <id>default</id>
303 <goals>
304 <goal>build</goal>
305 <goal>push</goal>
306 </goals>
307 </execution>
308 </executions>
309 <configuration>
310 <dockerfile>src/main/docker/Dockerfile.jvm</dockerfile>
311 <repository>docker.benkard.de/mulk/mulkcms2</repository>
312 <tag>${project.version}</tag>
313 </configuration>
314 </plugin>
315
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100316 </plugins>
317
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100318 <resources>
319 <resource>
320 <directory>src/main/resources</directory>
321 <excludes>
322 <exclude>META-INF/resources/node_modules/**/*</exclude>
Matthias Andreas Benkard97130f92020-01-27 21:03:39 +0100323 <exclude>META-INF/resources/package.json</exclude>
324 <exclude>META-INF/resources/yarn.lock</exclude>
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100325 </excludes>
326 <filtering>false</filtering>
327 </resource>
328 </resources>
329
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100330 </build>
331
332 <profiles>
333
334 <profile>
335
336 <id>native</id>
337
338 <activation>
339 <property>
340 <name>native</name>
341 </property>
342 </activation>
343
344 <build>
345 <plugins>
346 <plugin>
347 <artifactId>maven-failsafe-plugin</artifactId>
348 <version>${surefire-plugin.version}</version>
349 <executions>
350 <execution>
351 <goals>
352 <goal>integration-test</goal>
353 <goal>verify</goal>
354 </goals>
355 <configuration>
356 <systemProperties>
357 <native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
358 </systemProperties>
359 </configuration>
360 </execution>
361 </executions>
362 </plugin>
363 </plugins>
364 </build>
365
366 <properties>
367 <quarkus.package.type>native</quarkus.package.type>
368 </properties>
369
370 </profile>
371
372 </profiles>
373
374</project>