blob: ed9b20a68b3ad7ed98fd0abaf806172710a5912f [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
Matthias Andreas Benkard3bbba8d2020-06-13 15:40:15 +020019 <antrun-plugin.version>3.0.0</antrun-plugin.version>
Matthias Andreas Benkard55243c82020-04-13 20:49:15 +020020 <compiler-plugin.version>3.8.1</compiler-plugin.version>
Matthias Andreas Benkard6e41f382020-06-16 21:08:57 +020021 <quarkus-plugin.version>1.5.1.Final</quarkus-plugin.version>
Matthias Andreas Benkard813e5972020-06-14 19:27:42 +020022 <resources-plugin.version>3.1.0</resources-plugin.version>
Matthias Andreas Benkarda0392372020-06-13 15:46:39 +020023 <spotless-plugin.version>1.31.2</spotless-plugin.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010024
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 Benkard6e41f382020-06-16 21:08:57 +020028 <quarkus.platform.version>1.5.1.Final</quarkus.platform.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010029
Matthias Andreas Benkard1e7674c2020-04-18 20:28:51 +020030 <basic-annotations.version>0.2.0</basic-annotations.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010031 <findbugs-jsr305.version>3.0.2</findbugs-jsr305.version>
Matthias Andreas Benkard3bbba8d2020-06-13 15:40:15 +020032 <flexmark.version>0.62.0</flexmark.version>
Matthias Andreas Benkarda0392372020-06-13 15:46:39 +020033 <google.java.format.version>1.8</google.java.format.version>
Matthias Andreas Benkard3bbba8d2020-06-13 15:40:15 +020034 <hibernate.version>5.4.17.Final</hibernate.version>
35 <hibernate-types.version>2.9.11</hibernate-types.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010036 <jakarta-jacc-api.version>1.6.1</jakarta-jacc-api.version>
37 <jna.version>5.5.0</jna.version>
Matthias Andreas Benkard551f50c2020-03-15 12:34:07 +010038 <jsoup.version>1.13.1</jsoup.version>
Matthias Andreas Benkard80fc4312020-06-13 16:59:04 +020039 <liquibase.version>3.9.0</liquibase.version>
40 <postgresql.version>42.2.14</postgresql.version>
Matthias Andreas Benkard3bbba8d2020-06-13 15:40:15 +020041 <rome.version>1.13.0</rome.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010042 </properties>
43
44 <dependencyManagement>
45 <dependencies>
46
47 <dependency>
48 <groupId>${quarkus.platform.group-id}</groupId>
49 <artifactId>${quarkus.platform.artifact-id}</artifactId>
50 <version>${quarkus.platform.version}</version>
51 <type>pom</type>
52 <scope>import</scope>
53 </dependency>
54
55 <!-- Hibernate PostgreSQL Extra Types -->
56 <dependency>
57 <groupId>com.vladmihalcea</groupId>
58 <artifactId>hibernate-types-52</artifactId>
59 <version>${hibernate-types.version}</version>
60 </dependency>
61
Matthias Andreas Benkard1e7674c2020-04-18 20:28:51 +020062 <!-- Annotations -->
63 <dependency>
64 <groupId>pl.tlinkowski.annotation</groupId>
65 <artifactId>pl.tlinkowski.annotation.basic</artifactId>
66 <version>${basic-annotations.version}</version>
67 <scope>provided</scope>
68 </dependency>
69
Matthias Andreas Benkard4e29a242020-01-25 05:38:27 +010070 <!-- Jsoup -->
71 <dependency>
72 <groupId>org.jsoup</groupId>
73 <artifactId>jsoup</artifactId>
74 <version>${jsoup.version}</version>
75 </dependency>
76
Matthias Andreas Benkard424e16e2020-02-09 18:29:56 +010077 <!-- FlexMark -->
78 <dependency>
79 <groupId>com.vladsch.flexmark</groupId>
80 <artifactId>flexmark-all</artifactId>
81 <version>${flexmark.version}</version>
82 </dependency>
83
Matthias Andreas Benkard981f2792020-02-16 14:54:54 +010084 <!-- Rome -->
85 <dependency>
86 <groupId>com.rometools</groupId>
87 <artifactId>rome</artifactId>
88 <version>${rome.version}</version>
89 </dependency>
90
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010091 <!-- JNA -->
92 <dependency>
93 <groupId>net.java.dev.jna</groupId>
94 <artifactId>jna</artifactId>
95 <version>${jna.version}</version>
96 </dependency>
97
98 <!-- JACC -->
99 <dependency>
100 <groupId>jakarta.security.jacc</groupId>
101 <artifactId>jakarta.security.jacc-api</artifactId>
102 <version>${jakarta-jacc-api.version}</version>
103 </dependency>
104
Matthias Andreas Benkard2a1383f2020-02-01 23:53:17 +0100105 <!-- JOSE for Java -->
106 <dependency>
107 <groupId>org.bitbucket.b_c</groupId>
108 <artifactId>jose4j</artifactId>
109 <version>0.7.0</version>
110 </dependency>
111
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100112 <!-- Annotations -->
113 <dependency>
114 <groupId>com.google.code.findbugs</groupId>
115 <artifactId>jsr305</artifactId>
116 <version>${findbugs-jsr305.version}</version>
117 <scope>provided</scope>
118 </dependency>
119
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100120 </dependencies>
121 </dependencyManagement>
122
123 <dependencies>
124
125 <dependency>
126 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100127 <artifactId>quarkus-agroal</artifactId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100128 </dependency>
129 <dependency>
130 <groupId>io.quarkus</groupId>
Matthias Andreas Benkardc27d1cb2020-01-26 11:11:24 +0100131 <artifactId>quarkus-elytron-security-properties-file</artifactId>
132 </dependency>
133 <dependency>
134 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100135 <artifactId>quarkus-hibernate-orm-panache</artifactId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100136 </dependency>
137 <dependency>
138 <groupId>io.quarkus</groupId>
139 <artifactId>quarkus-hibernate-validator</artifactId>
140 </dependency>
141 <dependency>
142 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100143 <artifactId>quarkus-jdbc-postgresql</artifactId>
144 </dependency>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100145 <dependency>
146 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard80fc4312020-06-13 16:59:04 +0200147 <artifactId>quarkus-liquibase</artifactId>
148 </dependency>
149 <dependency>
150 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100151 <artifactId>quarkus-oidc</artifactId>
152 </dependency>
153 <dependency>
154 <groupId>io.quarkus</groupId>
155 <artifactId>quarkus-resteasy</artifactId>
156 </dependency>
157 <dependency>
158 <groupId>io.quarkus</groupId>
159 <artifactId>quarkus-resteasy-jsonb</artifactId>
160 </dependency>
161 <dependency>
162 <groupId>io.quarkus</groupId>
163 <artifactId>quarkus-resteasy-qute</artifactId>
164 </dependency>
Matthias Andreas Benkard2a1383f2020-02-01 23:53:17 +0100165 <dependency>
166 <groupId>io.quarkus</groupId>
167 <artifactId>quarkus-smallrye-jwt</artifactId>
168 </dependency>
Matthias Andreas Benkarddb48be42020-04-17 21:44:59 +0200169 <dependency>
170 <groupId>io.quarkus</groupId>
171 <artifactId>quarkus-container-image-jib</artifactId>
172 </dependency>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100173
174 <!-- JNA -->
175 <dependency>
176 <groupId>net.java.dev.jna</groupId>
177 <artifactId>jna</artifactId>
178 </dependency>
179
180 <!-- JACC -->
181 <dependency>
182 <groupId>jakarta.security.jacc</groupId>
183 <artifactId>jakarta.security.jacc-api</artifactId>
184 </dependency>
185
186 <!-- Hibernate PostgreSQL Extra Types -->
187 <dependency>
188 <groupId>com.vladmihalcea</groupId>
189 <artifactId>hibernate-types-52</artifactId>
190 </dependency>
191
Matthias Andreas Benkard1e7674c2020-04-18 20:28:51 +0200192 <!-- Annotations -->
193 <dependency>
194 <groupId>pl.tlinkowski.annotation</groupId>
195 <artifactId>pl.tlinkowski.annotation.basic</artifactId>
196 <scope>provided</scope>
197 </dependency>
198
Matthias Andreas Benkard4e29a242020-01-25 05:38:27 +0100199 <!-- Jsoup -->
200 <dependency>
201 <groupId>org.jsoup</groupId>
202 <artifactId>jsoup</artifactId>
203 </dependency>
204
Matthias Andreas Benkard424e16e2020-02-09 18:29:56 +0100205 <!-- FlexMark -->
206 <dependency>
207 <groupId>com.vladsch.flexmark</groupId>
208 <artifactId>flexmark-all</artifactId>
209 </dependency>
210
Matthias Andreas Benkard981f2792020-02-16 14:54:54 +0100211 <!-- Rome -->
212 <dependency>
213 <groupId>com.rometools</groupId>
214 <artifactId>rome</artifactId>
215 </dependency>
216
Matthias Andreas Benkard2a1383f2020-02-01 23:53:17 +0100217 <!-- JOSE for Java -->
218 <dependency>
219 <groupId>org.bitbucket.b_c</groupId>
220 <artifactId>jose4j</artifactId>
221 </dependency>
222
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100223 <!-- Annotations -->
224 <dependency>
225 <groupId>com.google.code.findbugs</groupId>
226 <artifactId>jsr305</artifactId>
227 <scope>provided</scope>
228 </dependency>
229
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100230 </dependencies>
231
232 <build>
233
234 <plugins>
235
236 <plugin>
237 <groupId>io.quarkus</groupId>
238 <artifactId>quarkus-maven-plugin</artifactId>
239 <version>${quarkus-plugin.version}</version>
240 <executions>
241 <execution>
242 <goals>
243 <goal>build</goal>
244 </goals>
245 </execution>
246 </executions>
247 </plugin>
248
249 <plugin>
250 <artifactId>maven-compiler-plugin</artifactId>
251 <version>${compiler-plugin.version}</version>
Matthias Andreas Benkard98e63f02020-04-18 19:45:48 +0200252
253 <configuration>
254 <annotationProcessorPaths>
Matthias Andreas Benkard6e41f382020-06-16 21:08:57 +0200255
Matthias Andreas Benkard98e63f02020-04-18 19:45:48 +0200256 <!-- Hibernate -->
257 <annotationProcessorPath>
258 <groupId>org.hibernate</groupId>
259 <artifactId>hibernate-jpamodelgen</artifactId>
260 <version>${hibernate.version}</version>
261 </annotationProcessorPath>
Matthias Andreas Benkard6e41f382020-06-16 21:08:57 +0200262
263 <!-- Quarkus -->
264 <annotationProcessorPath>
265 <groupId>io.quarkus</groupId>
266 <artifactId>quarkus-panache-common</artifactId>
267 <version>${quarkus.platform.version}</version>
268 </annotationProcessorPath>
269
Matthias Andreas Benkard98e63f02020-04-18 19:45:48 +0200270 </annotationProcessorPaths>
271 </configuration>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100272 </plugin>
273
Matthias Andreas Benkard813e5972020-06-14 19:27:42 +0200274 <!-- Resources -->
275 <plugin>
276 <artifactId>maven-resources-plugin</artifactId>
277 <version>${resources-plugin.version}</version>
278 <executions>
279 <execution>
280 <id>copy-resources</id>
281 <phase>prepare-package</phase>
282 <goals>
283 <goal>copy-resources</goal>
284 </goals>
285 <configuration>
286 <outputDirectory>${basedir}/target/classes/META-INF/resources</outputDirectory>
287 <resources>
288 <resource>
289 <directory>${basedir}/src/main/resources/META-INF/resources/dist</directory>
290 <filtering>true</filtering>
291 </resource>
292 </resources>
293 </configuration>
294 </execution>
295 </executions>
296 </plugin>
297
Matthias Andreas Benkard80fc4312020-06-13 16:59:04 +0200298 <!-- Liquibase -->
299 <plugin>
300 <groupId>org.liquibase</groupId>
301 <artifactId>liquibase-maven-plugin</artifactId>
302 <version>${liquibase.version}</version>
303 <configuration>
304 <propertyFile>src/main/resources/db/liquibase.properties</propertyFile>
305 </configuration>
306 <dependencies>
307 <dependency>
308 <groupId>org.liquibase.ext</groupId>
309 <artifactId>liquibase-hibernate5</artifactId> <!-- note: I tried hibernate4 release version as well -->
310 <version>${liquibase.version}</version>
311 </dependency>
312 <dependency>
313 <groupId>org.hibernate</groupId>
314 <artifactId>hibernate-core</artifactId>
315 <version>${hibernate.version}</version>
316 </dependency>
317 <dependency>
318 <groupId>org.hibernate</groupId>
319 <artifactId>hibernate-entitymanager</artifactId>
320 <version>${hibernate.version}</version>
321 </dependency>
322 <dependency>
323 <groupId>org.hibernate</groupId>
324 <artifactId>hibernate-envers</artifactId>
325 <version>${hibernate.version}</version>
326 </dependency>
327 <dependency>
328 <groupId>org.postgresql</groupId>
329 <artifactId>postgresql</artifactId>
330 <version>${postgresql.version}</version>
331 </dependency>
332 </dependencies>
333 </plugin>
334
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100335 <!-- Google Java Code Formatter, for enforcing style conventions -->
336 <plugin>
337 <groupId>com.diffplug.spotless</groupId>
338 <artifactId>spotless-maven-plugin</artifactId>
339 <version>${spotless-plugin.version}</version>
340 <configuration>
341 <java>
342 <removeUnusedImports/>
343 <importOrder>
344 <order>java,javax,org,com,de,io,dagger,eu.mulk,</order>
345 </importOrder>
346 <googleJavaFormat>
347 <version>${google.java.format.version}</version>
348 <style>GOOGLE</style>
349 </googleJavaFormat>
350 </java>
351 </configuration>
352 </plugin>
Matthias Andreas Benkardf7bf7c42020-01-28 22:31:12 +0100353
354 <plugin>
Matthias Andreas Benkard7f4dacc2020-04-13 11:25:19 +0200355 <artifactId>maven-antrun-plugin</artifactId>
356 <version>${antrun-plugin.version}</version>
357 <executions>
358 <execution>
359 <phase>generate-resources</phase>
360 <configuration>
361 <target>
362 <ant target="web.resources" />
363 </target>
364 </configuration>
365 <goals>
366 <goal>run</goal>
367 </goals>
368 </execution>
369 </executions>
370 </plugin>
371
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100372 </plugins>
373
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100374 <resources>
375 <resource>
376 <directory>src/main/resources</directory>
377 <excludes>
Matthias Andreas Benkard81996642020-06-15 21:11:30 +0200378 <exclude>META-INF/resources/.cache</exclude>
379 <exclude>META-INF/resources/.eslintrc.js</exclude>
380 <exclude>META-INF/resources/.flowconfig</exclude>
Matthias Andreas Benkard89c25ea2020-06-15 21:01:01 +0200381 <exclude>META-INF/resources/.parcel-cache/**/*</exclude>
Matthias Andreas Benkard81996642020-06-15 21:11:30 +0200382 <exclude>META-INF/resources/dist/**/*</exclude>
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100383 <exclude>META-INF/resources/node_modules/**/*</exclude>
Matthias Andreas Benkard81996642020-06-15 21:11:30 +0200384 <exclude>META-INF/resources/web_modules/**/*</exclude>
Matthias Andreas Benkard97130f92020-01-27 21:03:39 +0100385 <exclude>META-INF/resources/package.json</exclude>
386 <exclude>META-INF/resources/yarn.lock</exclude>
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100387 </excludes>
388 <filtering>false</filtering>
389 </resource>
390 </resources>
391
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100392 </build>
393
394 <profiles>
395
396 <profile>
397
398 <id>native</id>
399
400 <activation>
401 <property>
402 <name>native</name>
403 </property>
404 </activation>
405
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100406 <properties>
407 <quarkus.package.type>native</quarkus.package.type>
408 </properties>
409
410 </profile>
411
412 </profiles>
413
414</project>