blob: 44ee46f27a1a877f7eb9b72e1c321405f3646d2f [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
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +020016 <scala.version>2.13.3</scala.version>
17
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010018 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
20
Matthias Andreas Benkard3bbba8d2020-06-13 15:40:15 +020021 <antrun-plugin.version>3.0.0</antrun-plugin.version>
Matthias Andreas Benkard55243c82020-04-13 20:49:15 +020022 <compiler-plugin.version>3.8.1</compiler-plugin.version>
Matthias Andreas Benkard43d59d32020-08-16 10:57:23 +020023 <quarkus.version>1.7.0.Final</quarkus.version>
Matthias Andreas Benkard813e5972020-06-14 19:27:42 +020024 <resources-plugin.version>3.1.0</resources-plugin.version>
Matthias Andreas Benkard3f986ef2020-08-22 13:28:33 +020025 <scalafmt.version>2.6.3</scalafmt.version>
26 <spotless-plugin.version>2.0.3</spotless-plugin.version>
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +020027 <scala-plugin.version>4.4.0</scala-plugin.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010028
Matthias Andreas Benkard2710bf32020-01-25 10:48:07 +010029 <!-- <quarkus.platform.artifact-id>quarkus-universe-bom</quarkus.platform.artifact-id> -->
30 <quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010031 <quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010032
Matthias Andreas Benkard1e7674c2020-04-18 20:28:51 +020033 <basic-annotations.version>0.2.0</basic-annotations.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010034 <findbugs-jsr305.version>3.0.2</findbugs-jsr305.version>
Matthias Andreas Benkard6b7e9412020-06-22 18:13:16 +020035 <flexmark.version>0.62.2</flexmark.version>
Matthias Andreas Benkarda0392372020-06-13 15:46:39 +020036 <google.java.format.version>1.8</google.java.format.version>
Matthias Andreas Benkard43d59d32020-08-16 10:57:23 +020037 <hibernate.version>5.4.20.Final</hibernate.version>
38 <hibernate-types.version>2.9.13</hibernate-types.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010039 <jakarta-jacc-api.version>1.6.1</jakarta-jacc-api.version>
Matthias Andreas Benkardaa196aa2020-07-18 12:36:57 +020040 <jna.version>5.6.0</jna.version>
Matthias Andreas Benkard551f50c2020-03-15 12:34:07 +010041 <jsoup.version>1.13.1</jsoup.version>
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +020042 <kotlin-annotations.version>1.4.0</kotlin-annotations.version>
Matthias Andreas Benkard80fc4312020-06-13 16:59:04 +020043 <liquibase.version>3.9.0</liquibase.version>
44 <postgresql.version>42.2.14</postgresql.version>
Matthias Andreas Benkardaa196aa2020-07-18 12:36:57 +020045 <rome.version>1.15.0</rome.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010046 </properties>
47
48 <dependencyManagement>
49 <dependencies>
50
51 <dependency>
52 <groupId>${quarkus.platform.group-id}</groupId>
53 <artifactId>${quarkus.platform.artifact-id}</artifactId>
Matthias Andreas Benkard43d59d32020-08-16 10:57:23 +020054 <version>${quarkus.version}</version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010055 <type>pom</type>
56 <scope>import</scope>
57 </dependency>
58
59 <!-- Hibernate PostgreSQL Extra Types -->
60 <dependency>
61 <groupId>com.vladmihalcea</groupId>
62 <artifactId>hibernate-types-52</artifactId>
63 <version>${hibernate-types.version}</version>
64 </dependency>
65
Matthias Andreas Benkard1e7674c2020-04-18 20:28:51 +020066 <!-- Annotations -->
67 <dependency>
68 <groupId>pl.tlinkowski.annotation</groupId>
69 <artifactId>pl.tlinkowski.annotation.basic</artifactId>
70 <version>${basic-annotations.version}</version>
71 <scope>provided</scope>
72 </dependency>
73
Matthias Andreas Benkard4e29a242020-01-25 05:38:27 +010074 <!-- Jsoup -->
75 <dependency>
76 <groupId>org.jsoup</groupId>
77 <artifactId>jsoup</artifactId>
78 <version>${jsoup.version}</version>
79 </dependency>
80
Matthias Andreas Benkard424e16e2020-02-09 18:29:56 +010081 <!-- FlexMark -->
82 <dependency>
83 <groupId>com.vladsch.flexmark</groupId>
84 <artifactId>flexmark-all</artifactId>
85 <version>${flexmark.version}</version>
86 </dependency>
87
Matthias Andreas Benkard981f2792020-02-16 14:54:54 +010088 <!-- Rome -->
89 <dependency>
90 <groupId>com.rometools</groupId>
91 <artifactId>rome</artifactId>
92 <version>${rome.version}</version>
93 </dependency>
94
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010095 <!-- JNA -->
96 <dependency>
97 <groupId>net.java.dev.jna</groupId>
98 <artifactId>jna</artifactId>
99 <version>${jna.version}</version>
100 </dependency>
101
102 <!-- JACC -->
103 <dependency>
104 <groupId>jakarta.security.jacc</groupId>
105 <artifactId>jakarta.security.jacc-api</artifactId>
106 <version>${jakarta-jacc-api.version}</version>
107 </dependency>
108
Matthias Andreas Benkard2a1383f2020-02-01 23:53:17 +0100109 <!-- JOSE for Java -->
110 <dependency>
111 <groupId>org.bitbucket.b_c</groupId>
112 <artifactId>jose4j</artifactId>
113 <version>0.7.0</version>
114 </dependency>
115
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100116 <!-- Annotations -->
117 <dependency>
118 <groupId>com.google.code.findbugs</groupId>
119 <artifactId>jsr305</artifactId>
120 <version>${findbugs-jsr305.version}</version>
121 <scope>provided</scope>
122 </dependency>
123
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100124 </dependencies>
125 </dependencyManagement>
126
127 <dependencies>
128
129 <dependency>
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +0200130 <groupId>org.scala-lang</groupId>
131 <artifactId>scala-library</artifactId>
132 <version>${scala.version}</version>
133 </dependency>
134 <dependency>
135 <groupId>org.scala-lang</groupId>
136 <artifactId>scala-reflect</artifactId>
137 <version>${scala.version}</version>
138 </dependency>
139
140 <dependency>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100141 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100142 <artifactId>quarkus-agroal</artifactId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100143 </dependency>
144 <dependency>
145 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +0200146 <artifactId>quarkus-scala</artifactId>
147 </dependency>
148 <dependency>
149 <groupId>io.quarkus</groupId>
Matthias Andreas Benkardc27d1cb2020-01-26 11:11:24 +0100150 <artifactId>quarkus-elytron-security-properties-file</artifactId>
151 </dependency>
152 <dependency>
153 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100154 <artifactId>quarkus-hibernate-orm-panache</artifactId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100155 </dependency>
156 <dependency>
157 <groupId>io.quarkus</groupId>
158 <artifactId>quarkus-hibernate-validator</artifactId>
159 </dependency>
160 <dependency>
161 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100162 <artifactId>quarkus-jdbc-postgresql</artifactId>
163 </dependency>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100164 <dependency>
165 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard80fc4312020-06-13 16:59:04 +0200166 <artifactId>quarkus-liquibase</artifactId>
167 </dependency>
168 <dependency>
169 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100170 <artifactId>quarkus-oidc</artifactId>
171 </dependency>
172 <dependency>
173 <groupId>io.quarkus</groupId>
174 <artifactId>quarkus-resteasy</artifactId>
175 </dependency>
176 <dependency>
177 <groupId>io.quarkus</groupId>
178 <artifactId>quarkus-resteasy-jsonb</artifactId>
179 </dependency>
180 <dependency>
181 <groupId>io.quarkus</groupId>
182 <artifactId>quarkus-resteasy-qute</artifactId>
183 </dependency>
Matthias Andreas Benkard2a1383f2020-02-01 23:53:17 +0100184 <dependency>
185 <groupId>io.quarkus</groupId>
186 <artifactId>quarkus-smallrye-jwt</artifactId>
187 </dependency>
Matthias Andreas Benkarddb48be42020-04-17 21:44:59 +0200188 <dependency>
189 <groupId>io.quarkus</groupId>
190 <artifactId>quarkus-container-image-jib</artifactId>
191 </dependency>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100192
193 <!-- JNA -->
194 <dependency>
195 <groupId>net.java.dev.jna</groupId>
196 <artifactId>jna</artifactId>
197 </dependency>
198
199 <!-- JACC -->
200 <dependency>
201 <groupId>jakarta.security.jacc</groupId>
202 <artifactId>jakarta.security.jacc-api</artifactId>
203 </dependency>
204
205 <!-- Hibernate PostgreSQL Extra Types -->
206 <dependency>
207 <groupId>com.vladmihalcea</groupId>
208 <artifactId>hibernate-types-52</artifactId>
209 </dependency>
210
Matthias Andreas Benkard1e7674c2020-04-18 20:28:51 +0200211 <!-- Annotations -->
212 <dependency>
213 <groupId>pl.tlinkowski.annotation</groupId>
214 <artifactId>pl.tlinkowski.annotation.basic</artifactId>
215 <scope>provided</scope>
216 </dependency>
217
Matthias Andreas Benkard4e29a242020-01-25 05:38:27 +0100218 <!-- Jsoup -->
219 <dependency>
220 <groupId>org.jsoup</groupId>
221 <artifactId>jsoup</artifactId>
222 </dependency>
223
Matthias Andreas Benkard424e16e2020-02-09 18:29:56 +0100224 <!-- FlexMark -->
225 <dependency>
226 <groupId>com.vladsch.flexmark</groupId>
227 <artifactId>flexmark-all</artifactId>
228 </dependency>
229
Matthias Andreas Benkard981f2792020-02-16 14:54:54 +0100230 <!-- Rome -->
231 <dependency>
232 <groupId>com.rometools</groupId>
233 <artifactId>rome</artifactId>
234 </dependency>
235
Matthias Andreas Benkard2a1383f2020-02-01 23:53:17 +0100236 <!-- JOSE for Java -->
237 <dependency>
238 <groupId>org.bitbucket.b_c</groupId>
239 <artifactId>jose4j</artifactId>
240 </dependency>
241
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100242 <!-- Annotations -->
243 <dependency>
244 <groupId>com.google.code.findbugs</groupId>
245 <artifactId>jsr305</artifactId>
246 <scope>provided</scope>
247 </dependency>
248
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100249 </dependencies>
250
251 <build>
252
253 <plugins>
254
255 <plugin>
256 <groupId>io.quarkus</groupId>
257 <artifactId>quarkus-maven-plugin</artifactId>
Matthias Andreas Benkard43d59d32020-08-16 10:57:23 +0200258 <version>${quarkus.version}</version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100259 <executions>
260 <execution>
261 <goals>
262 <goal>build</goal>
263 </goals>
264 </execution>
265 </executions>
266 </plugin>
267
268 <plugin>
269 <artifactId>maven-compiler-plugin</artifactId>
270 <version>${compiler-plugin.version}</version>
Matthias Andreas Benkard98e63f02020-04-18 19:45:48 +0200271
272 <configuration>
273 <annotationProcessorPaths>
Matthias Andreas Benkard6e41f382020-06-16 21:08:57 +0200274
Matthias Andreas Benkard98e63f02020-04-18 19:45:48 +0200275 <!-- Hibernate -->
276 <annotationProcessorPath>
277 <groupId>org.hibernate</groupId>
278 <artifactId>hibernate-jpamodelgen</artifactId>
279 <version>${hibernate.version}</version>
280 </annotationProcessorPath>
Matthias Andreas Benkard6e41f382020-06-16 21:08:57 +0200281
282 <!-- Quarkus -->
283 <annotationProcessorPath>
284 <groupId>io.quarkus</groupId>
285 <artifactId>quarkus-panache-common</artifactId>
Matthias Andreas Benkard43d59d32020-08-16 10:57:23 +0200286 <version>${quarkus.version}</version>
Matthias Andreas Benkard6e41f382020-06-16 21:08:57 +0200287 </annotationProcessorPath>
288
Matthias Andreas Benkard98e63f02020-04-18 19:45:48 +0200289 </annotationProcessorPaths>
290 </configuration>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100291 </plugin>
292
Matthias Andreas Benkard813e5972020-06-14 19:27:42 +0200293 <!-- Resources -->
294 <plugin>
295 <artifactId>maven-resources-plugin</artifactId>
296 <version>${resources-plugin.version}</version>
297 <executions>
298 <execution>
299 <id>copy-resources</id>
300 <phase>prepare-package</phase>
301 <goals>
302 <goal>copy-resources</goal>
303 </goals>
304 <configuration>
305 <outputDirectory>${basedir}/target/classes/META-INF/resources</outputDirectory>
306 <resources>
307 <resource>
308 <directory>${basedir}/src/main/resources/META-INF/resources/dist</directory>
309 <filtering>true</filtering>
310 </resource>
311 </resources>
312 </configuration>
313 </execution>
314 </executions>
315 </plugin>
316
Matthias Andreas Benkard80fc4312020-06-13 16:59:04 +0200317 <!-- Liquibase -->
318 <plugin>
319 <groupId>org.liquibase</groupId>
320 <artifactId>liquibase-maven-plugin</artifactId>
321 <version>${liquibase.version}</version>
322 <configuration>
323 <propertyFile>src/main/resources/db/liquibase.properties</propertyFile>
324 </configuration>
325 <dependencies>
326 <dependency>
327 <groupId>org.liquibase.ext</groupId>
328 <artifactId>liquibase-hibernate5</artifactId> <!-- note: I tried hibernate4 release version as well -->
329 <version>${liquibase.version}</version>
330 </dependency>
331 <dependency>
332 <groupId>org.hibernate</groupId>
333 <artifactId>hibernate-core</artifactId>
334 <version>${hibernate.version}</version>
335 </dependency>
336 <dependency>
337 <groupId>org.hibernate</groupId>
338 <artifactId>hibernate-entitymanager</artifactId>
339 <version>${hibernate.version}</version>
340 </dependency>
341 <dependency>
342 <groupId>org.hibernate</groupId>
343 <artifactId>hibernate-envers</artifactId>
344 <version>${hibernate.version}</version>
345 </dependency>
346 <dependency>
347 <groupId>org.postgresql</groupId>
348 <artifactId>postgresql</artifactId>
349 <version>${postgresql.version}</version>
350 </dependency>
351 </dependencies>
352 </plugin>
353
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100354 <!-- Google Java Code Formatter, for enforcing style conventions -->
355 <plugin>
356 <groupId>com.diffplug.spotless</groupId>
357 <artifactId>spotless-maven-plugin</artifactId>
358 <version>${spotless-plugin.version}</version>
359 <configuration>
360 <java>
361 <removeUnusedImports/>
362 <importOrder>
363 <order>java,javax,org,com,de,io,dagger,eu.mulk,</order>
364 </importOrder>
365 <googleJavaFormat>
366 <version>${google.java.format.version}</version>
367 <style>GOOGLE</style>
368 </googleJavaFormat>
369 </java>
Matthias Andreas Benkard3f986ef2020-08-22 13:28:33 +0200370
371 <scala>
372 <scalafmt>
373 <version>${scalafmt.version}</version>
374 <file>${basedir}/.scalafmt.conf</file>
375 </scalafmt>
376 </scala>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100377 </configuration>
378 </plugin>
Matthias Andreas Benkardf7bf7c42020-01-28 22:31:12 +0100379
380 <plugin>
Matthias Andreas Benkard7f4dacc2020-04-13 11:25:19 +0200381 <artifactId>maven-antrun-plugin</artifactId>
382 <version>${antrun-plugin.version}</version>
383 <executions>
384 <execution>
385 <phase>generate-resources</phase>
386 <configuration>
387 <target>
388 <ant target="web.resources" />
389 </target>
390 </configuration>
391 <goals>
392 <goal>run</goal>
393 </goals>
394 </execution>
395 </executions>
396 </plugin>
397
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +0200398 <plugin>
399 <groupId>net.alchim31.maven</groupId>
400 <artifactId>scala-maven-plugin</artifactId>
401 <version>${scala-plugin.version}</version>
402
403 <executions>
404 <execution>
405 <id>scala-compile-first</id>
406 <phase>process-resources</phase>
407 <goals>
408 <goal>add-source</goal>
409 <goal>compile</goal>
410 </goals>
411 </execution>
412 <execution>
413 <id>scala-test-compile</id>
414 <phase>process-test-resources</phase>
415 <goals>
416 <goal>add-source</goal>
417 <goal>testCompile</goal>
418 </goals>
419 </execution>
420 </executions>
421
422 <configuration>
423 <scalaVersion>${scala.version}</scalaVersion>
424 <localInstall>false</localInstall>
425 <!--<recompileMode>incremental</recompileMode>-->
426 <args>
427 <arg>-Xsource:3</arg>
428 <!--
429 <arg>-deprecation</arg>
430 <arg>-feature</arg>
431 <arg>-explaintypes</arg>
432 <arg>-target:jvm-1.8</arg>
433 <arg>-Ypartial-unification</arg>
434 -->
435 </args>
436
437 <javacArgs>
438 <javacArg>-Xlint:deprecation</javacArg>
439 </javacArgs>
440
441 <additionalDependencies>
442
443 <!-- Hibernate -->
444 <dependency>
445 <groupId>org.hibernate</groupId>
446 <artifactId>hibernate-jpamodelgen</artifactId>
447 <version>${hibernate.version}</version>
448 </dependency>
449
450 <!-- Quarkus -->
451 <dependency>
452 <groupId>io.quarkus</groupId>
453 <artifactId>quarkus-panache-common</artifactId>
454 <version>${quarkus.version}</version>
455 </dependency>
456
457 <!-- Annotations -->
458 <dependency>
459 <groupId>org.jetbrains.kotlin</groupId>
460 <artifactId>kotlin-annotations-jvm</artifactId>
461 <version>${kotlin-annotations.version}</version>
462 </dependency>
463
464 </additionalDependencies>
465 </configuration>
466
467 </plugin>
468
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100469 </plugins>
470
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100471 <resources>
472 <resource>
473 <directory>src/main/resources</directory>
474 <excludes>
Matthias Andreas Benkard81996642020-06-15 21:11:30 +0200475 <exclude>META-INF/resources/.cache</exclude>
476 <exclude>META-INF/resources/.eslintrc.js</exclude>
477 <exclude>META-INF/resources/.flowconfig</exclude>
Matthias Andreas Benkard89c25ea2020-06-15 21:01:01 +0200478 <exclude>META-INF/resources/.parcel-cache/**/*</exclude>
Matthias Andreas Benkard81996642020-06-15 21:11:30 +0200479 <exclude>META-INF/resources/dist/**/*</exclude>
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100480 <exclude>META-INF/resources/node_modules/**/*</exclude>
Matthias Andreas Benkard81996642020-06-15 21:11:30 +0200481 <exclude>META-INF/resources/web_modules/**/*</exclude>
Matthias Andreas Benkard97130f92020-01-27 21:03:39 +0100482 <exclude>META-INF/resources/package.json</exclude>
483 <exclude>META-INF/resources/yarn.lock</exclude>
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100484 </excludes>
485 <filtering>false</filtering>
486 </resource>
487 </resources>
488
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100489 </build>
490
491 <profiles>
492
493 <profile>
494
495 <id>native</id>
496
497 <activation>
498 <property>
499 <name>native</name>
500 </property>
501 </activation>
502
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100503 <properties>
504 <quarkus.package.type>native</quarkus.package.type>
505 </properties>
506
507 </profile>
508
509 </profiles>
510
511</project>