blob: c5261ca0c6a401e3b48727db8107aa68e107033e [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 Benkard43d59d32020-08-16 10:57:23 +020025 <spotless-plugin.version>2.0.1</spotless-plugin.version>
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +020026 <scala-plugin.version>4.4.0</scala-plugin.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010027
Matthias Andreas Benkard2710bf32020-01-25 10:48:07 +010028 <!-- <quarkus.platform.artifact-id>quarkus-universe-bom</quarkus.platform.artifact-id> -->
29 <quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010030 <quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010031
Matthias Andreas Benkard1e7674c2020-04-18 20:28:51 +020032 <basic-annotations.version>0.2.0</basic-annotations.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010033 <findbugs-jsr305.version>3.0.2</findbugs-jsr305.version>
Matthias Andreas Benkard6b7e9412020-06-22 18:13:16 +020034 <flexmark.version>0.62.2</flexmark.version>
Matthias Andreas Benkarda0392372020-06-13 15:46:39 +020035 <google.java.format.version>1.8</google.java.format.version>
Matthias Andreas Benkard43d59d32020-08-16 10:57:23 +020036 <hibernate.version>5.4.20.Final</hibernate.version>
37 <hibernate-types.version>2.9.13</hibernate-types.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010038 <jakarta-jacc-api.version>1.6.1</jakarta-jacc-api.version>
Matthias Andreas Benkardaa196aa2020-07-18 12:36:57 +020039 <jna.version>5.6.0</jna.version>
Matthias Andreas Benkard551f50c2020-03-15 12:34:07 +010040 <jsoup.version>1.13.1</jsoup.version>
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +020041 <kotlin-annotations.version>1.4.0</kotlin-annotations.version>
Matthias Andreas Benkard80fc4312020-06-13 16:59:04 +020042 <liquibase.version>3.9.0</liquibase.version>
43 <postgresql.version>42.2.14</postgresql.version>
Matthias Andreas Benkardaa196aa2020-07-18 12:36:57 +020044 <rome.version>1.15.0</rome.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010045 </properties>
46
47 <dependencyManagement>
48 <dependencies>
49
50 <dependency>
51 <groupId>${quarkus.platform.group-id}</groupId>
52 <artifactId>${quarkus.platform.artifact-id}</artifactId>
Matthias Andreas Benkard43d59d32020-08-16 10:57:23 +020053 <version>${quarkus.version}</version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010054 <type>pom</type>
55 <scope>import</scope>
56 </dependency>
57
58 <!-- Hibernate PostgreSQL Extra Types -->
59 <dependency>
60 <groupId>com.vladmihalcea</groupId>
61 <artifactId>hibernate-types-52</artifactId>
62 <version>${hibernate-types.version}</version>
63 </dependency>
64
Matthias Andreas Benkard1e7674c2020-04-18 20:28:51 +020065 <!-- Annotations -->
66 <dependency>
67 <groupId>pl.tlinkowski.annotation</groupId>
68 <artifactId>pl.tlinkowski.annotation.basic</artifactId>
69 <version>${basic-annotations.version}</version>
70 <scope>provided</scope>
71 </dependency>
72
Matthias Andreas Benkard4e29a242020-01-25 05:38:27 +010073 <!-- Jsoup -->
74 <dependency>
75 <groupId>org.jsoup</groupId>
76 <artifactId>jsoup</artifactId>
77 <version>${jsoup.version}</version>
78 </dependency>
79
Matthias Andreas Benkard424e16e2020-02-09 18:29:56 +010080 <!-- FlexMark -->
81 <dependency>
82 <groupId>com.vladsch.flexmark</groupId>
83 <artifactId>flexmark-all</artifactId>
84 <version>${flexmark.version}</version>
85 </dependency>
86
Matthias Andreas Benkard981f2792020-02-16 14:54:54 +010087 <!-- Rome -->
88 <dependency>
89 <groupId>com.rometools</groupId>
90 <artifactId>rome</artifactId>
91 <version>${rome.version}</version>
92 </dependency>
93
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010094 <!-- JNA -->
95 <dependency>
96 <groupId>net.java.dev.jna</groupId>
97 <artifactId>jna</artifactId>
98 <version>${jna.version}</version>
99 </dependency>
100
101 <!-- JACC -->
102 <dependency>
103 <groupId>jakarta.security.jacc</groupId>
104 <artifactId>jakarta.security.jacc-api</artifactId>
105 <version>${jakarta-jacc-api.version}</version>
106 </dependency>
107
Matthias Andreas Benkard2a1383f2020-02-01 23:53:17 +0100108 <!-- JOSE for Java -->
109 <dependency>
110 <groupId>org.bitbucket.b_c</groupId>
111 <artifactId>jose4j</artifactId>
112 <version>0.7.0</version>
113 </dependency>
114
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100115 <!-- Annotations -->
116 <dependency>
117 <groupId>com.google.code.findbugs</groupId>
118 <artifactId>jsr305</artifactId>
119 <version>${findbugs-jsr305.version}</version>
120 <scope>provided</scope>
121 </dependency>
122
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100123 </dependencies>
124 </dependencyManagement>
125
126 <dependencies>
127
128 <dependency>
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +0200129 <groupId>org.scala-lang</groupId>
130 <artifactId>scala-library</artifactId>
131 <version>${scala.version}</version>
132 </dependency>
133 <dependency>
134 <groupId>org.scala-lang</groupId>
135 <artifactId>scala-reflect</artifactId>
136 <version>${scala.version}</version>
137 </dependency>
138
139 <dependency>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100140 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100141 <artifactId>quarkus-agroal</artifactId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100142 </dependency>
143 <dependency>
144 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +0200145 <artifactId>quarkus-scala</artifactId>
146 </dependency>
147 <dependency>
148 <groupId>io.quarkus</groupId>
Matthias Andreas Benkardc27d1cb2020-01-26 11:11:24 +0100149 <artifactId>quarkus-elytron-security-properties-file</artifactId>
150 </dependency>
151 <dependency>
152 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100153 <artifactId>quarkus-hibernate-orm-panache</artifactId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100154 </dependency>
155 <dependency>
156 <groupId>io.quarkus</groupId>
157 <artifactId>quarkus-hibernate-validator</artifactId>
158 </dependency>
159 <dependency>
160 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100161 <artifactId>quarkus-jdbc-postgresql</artifactId>
162 </dependency>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100163 <dependency>
164 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard80fc4312020-06-13 16:59:04 +0200165 <artifactId>quarkus-liquibase</artifactId>
166 </dependency>
167 <dependency>
168 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100169 <artifactId>quarkus-oidc</artifactId>
170 </dependency>
171 <dependency>
172 <groupId>io.quarkus</groupId>
173 <artifactId>quarkus-resteasy</artifactId>
174 </dependency>
175 <dependency>
176 <groupId>io.quarkus</groupId>
177 <artifactId>quarkus-resteasy-jsonb</artifactId>
178 </dependency>
179 <dependency>
180 <groupId>io.quarkus</groupId>
181 <artifactId>quarkus-resteasy-qute</artifactId>
182 </dependency>
Matthias Andreas Benkard2a1383f2020-02-01 23:53:17 +0100183 <dependency>
184 <groupId>io.quarkus</groupId>
185 <artifactId>quarkus-smallrye-jwt</artifactId>
186 </dependency>
Matthias Andreas Benkarddb48be42020-04-17 21:44:59 +0200187 <dependency>
188 <groupId>io.quarkus</groupId>
189 <artifactId>quarkus-container-image-jib</artifactId>
190 </dependency>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100191
192 <!-- JNA -->
193 <dependency>
194 <groupId>net.java.dev.jna</groupId>
195 <artifactId>jna</artifactId>
196 </dependency>
197
198 <!-- JACC -->
199 <dependency>
200 <groupId>jakarta.security.jacc</groupId>
201 <artifactId>jakarta.security.jacc-api</artifactId>
202 </dependency>
203
204 <!-- Hibernate PostgreSQL Extra Types -->
205 <dependency>
206 <groupId>com.vladmihalcea</groupId>
207 <artifactId>hibernate-types-52</artifactId>
208 </dependency>
209
Matthias Andreas Benkard1e7674c2020-04-18 20:28:51 +0200210 <!-- Annotations -->
211 <dependency>
212 <groupId>pl.tlinkowski.annotation</groupId>
213 <artifactId>pl.tlinkowski.annotation.basic</artifactId>
214 <scope>provided</scope>
215 </dependency>
216
Matthias Andreas Benkard4e29a242020-01-25 05:38:27 +0100217 <!-- Jsoup -->
218 <dependency>
219 <groupId>org.jsoup</groupId>
220 <artifactId>jsoup</artifactId>
221 </dependency>
222
Matthias Andreas Benkard424e16e2020-02-09 18:29:56 +0100223 <!-- FlexMark -->
224 <dependency>
225 <groupId>com.vladsch.flexmark</groupId>
226 <artifactId>flexmark-all</artifactId>
227 </dependency>
228
Matthias Andreas Benkard981f2792020-02-16 14:54:54 +0100229 <!-- Rome -->
230 <dependency>
231 <groupId>com.rometools</groupId>
232 <artifactId>rome</artifactId>
233 </dependency>
234
Matthias Andreas Benkard2a1383f2020-02-01 23:53:17 +0100235 <!-- JOSE for Java -->
236 <dependency>
237 <groupId>org.bitbucket.b_c</groupId>
238 <artifactId>jose4j</artifactId>
239 </dependency>
240
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100241 <!-- Annotations -->
242 <dependency>
243 <groupId>com.google.code.findbugs</groupId>
244 <artifactId>jsr305</artifactId>
245 <scope>provided</scope>
246 </dependency>
247
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100248 </dependencies>
249
250 <build>
251
252 <plugins>
253
254 <plugin>
255 <groupId>io.quarkus</groupId>
256 <artifactId>quarkus-maven-plugin</artifactId>
Matthias Andreas Benkard43d59d32020-08-16 10:57:23 +0200257 <version>${quarkus.version}</version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100258 <executions>
259 <execution>
260 <goals>
261 <goal>build</goal>
262 </goals>
263 </execution>
264 </executions>
265 </plugin>
266
267 <plugin>
268 <artifactId>maven-compiler-plugin</artifactId>
269 <version>${compiler-plugin.version}</version>
Matthias Andreas Benkard98e63f02020-04-18 19:45:48 +0200270
271 <configuration>
272 <annotationProcessorPaths>
Matthias Andreas Benkard6e41f382020-06-16 21:08:57 +0200273
Matthias Andreas Benkard98e63f02020-04-18 19:45:48 +0200274 <!-- Hibernate -->
275 <annotationProcessorPath>
276 <groupId>org.hibernate</groupId>
277 <artifactId>hibernate-jpamodelgen</artifactId>
278 <version>${hibernate.version}</version>
279 </annotationProcessorPath>
Matthias Andreas Benkard6e41f382020-06-16 21:08:57 +0200280
281 <!-- Quarkus -->
282 <annotationProcessorPath>
283 <groupId>io.quarkus</groupId>
284 <artifactId>quarkus-panache-common</artifactId>
Matthias Andreas Benkard43d59d32020-08-16 10:57:23 +0200285 <version>${quarkus.version}</version>
Matthias Andreas Benkard6e41f382020-06-16 21:08:57 +0200286 </annotationProcessorPath>
287
Matthias Andreas Benkard98e63f02020-04-18 19:45:48 +0200288 </annotationProcessorPaths>
289 </configuration>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100290 </plugin>
291
Matthias Andreas Benkard813e5972020-06-14 19:27:42 +0200292 <!-- Resources -->
293 <plugin>
294 <artifactId>maven-resources-plugin</artifactId>
295 <version>${resources-plugin.version}</version>
296 <executions>
297 <execution>
298 <id>copy-resources</id>
299 <phase>prepare-package</phase>
300 <goals>
301 <goal>copy-resources</goal>
302 </goals>
303 <configuration>
304 <outputDirectory>${basedir}/target/classes/META-INF/resources</outputDirectory>
305 <resources>
306 <resource>
307 <directory>${basedir}/src/main/resources/META-INF/resources/dist</directory>
308 <filtering>true</filtering>
309 </resource>
310 </resources>
311 </configuration>
312 </execution>
313 </executions>
314 </plugin>
315
Matthias Andreas Benkard80fc4312020-06-13 16:59:04 +0200316 <!-- Liquibase -->
317 <plugin>
318 <groupId>org.liquibase</groupId>
319 <artifactId>liquibase-maven-plugin</artifactId>
320 <version>${liquibase.version}</version>
321 <configuration>
322 <propertyFile>src/main/resources/db/liquibase.properties</propertyFile>
323 </configuration>
324 <dependencies>
325 <dependency>
326 <groupId>org.liquibase.ext</groupId>
327 <artifactId>liquibase-hibernate5</artifactId> <!-- note: I tried hibernate4 release version as well -->
328 <version>${liquibase.version}</version>
329 </dependency>
330 <dependency>
331 <groupId>org.hibernate</groupId>
332 <artifactId>hibernate-core</artifactId>
333 <version>${hibernate.version}</version>
334 </dependency>
335 <dependency>
336 <groupId>org.hibernate</groupId>
337 <artifactId>hibernate-entitymanager</artifactId>
338 <version>${hibernate.version}</version>
339 </dependency>
340 <dependency>
341 <groupId>org.hibernate</groupId>
342 <artifactId>hibernate-envers</artifactId>
343 <version>${hibernate.version}</version>
344 </dependency>
345 <dependency>
346 <groupId>org.postgresql</groupId>
347 <artifactId>postgresql</artifactId>
348 <version>${postgresql.version}</version>
349 </dependency>
350 </dependencies>
351 </plugin>
352
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100353 <!-- Google Java Code Formatter, for enforcing style conventions -->
354 <plugin>
355 <groupId>com.diffplug.spotless</groupId>
356 <artifactId>spotless-maven-plugin</artifactId>
357 <version>${spotless-plugin.version}</version>
358 <configuration>
359 <java>
360 <removeUnusedImports/>
361 <importOrder>
362 <order>java,javax,org,com,de,io,dagger,eu.mulk,</order>
363 </importOrder>
364 <googleJavaFormat>
365 <version>${google.java.format.version}</version>
366 <style>GOOGLE</style>
367 </googleJavaFormat>
368 </java>
369 </configuration>
370 </plugin>
Matthias Andreas Benkardf7bf7c42020-01-28 22:31:12 +0100371
372 <plugin>
Matthias Andreas Benkard7f4dacc2020-04-13 11:25:19 +0200373 <artifactId>maven-antrun-plugin</artifactId>
374 <version>${antrun-plugin.version}</version>
375 <executions>
376 <execution>
377 <phase>generate-resources</phase>
378 <configuration>
379 <target>
380 <ant target="web.resources" />
381 </target>
382 </configuration>
383 <goals>
384 <goal>run</goal>
385 </goals>
386 </execution>
387 </executions>
388 </plugin>
389
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +0200390 <plugin>
391 <groupId>net.alchim31.maven</groupId>
392 <artifactId>scala-maven-plugin</artifactId>
393 <version>${scala-plugin.version}</version>
394
395 <executions>
396 <execution>
397 <id>scala-compile-first</id>
398 <phase>process-resources</phase>
399 <goals>
400 <goal>add-source</goal>
401 <goal>compile</goal>
402 </goals>
403 </execution>
404 <execution>
405 <id>scala-test-compile</id>
406 <phase>process-test-resources</phase>
407 <goals>
408 <goal>add-source</goal>
409 <goal>testCompile</goal>
410 </goals>
411 </execution>
412 </executions>
413
414 <configuration>
415 <scalaVersion>${scala.version}</scalaVersion>
416 <localInstall>false</localInstall>
417 <!--<recompileMode>incremental</recompileMode>-->
418 <args>
419 <arg>-Xsource:3</arg>
420 <!--
421 <arg>-deprecation</arg>
422 <arg>-feature</arg>
423 <arg>-explaintypes</arg>
424 <arg>-target:jvm-1.8</arg>
425 <arg>-Ypartial-unification</arg>
426 -->
427 </args>
428
429 <javacArgs>
430 <javacArg>-Xlint:deprecation</javacArg>
431 </javacArgs>
432
433 <additionalDependencies>
434
435 <!-- Hibernate -->
436 <dependency>
437 <groupId>org.hibernate</groupId>
438 <artifactId>hibernate-jpamodelgen</artifactId>
439 <version>${hibernate.version}</version>
440 </dependency>
441
442 <!-- Quarkus -->
443 <dependency>
444 <groupId>io.quarkus</groupId>
445 <artifactId>quarkus-panache-common</artifactId>
446 <version>${quarkus.version}</version>
447 </dependency>
448
449 <!-- Annotations -->
450 <dependency>
451 <groupId>org.jetbrains.kotlin</groupId>
452 <artifactId>kotlin-annotations-jvm</artifactId>
453 <version>${kotlin-annotations.version}</version>
454 </dependency>
455
456 </additionalDependencies>
457 </configuration>
458
459 </plugin>
460
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100461 </plugins>
462
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100463 <resources>
464 <resource>
465 <directory>src/main/resources</directory>
466 <excludes>
Matthias Andreas Benkard81996642020-06-15 21:11:30 +0200467 <exclude>META-INF/resources/.cache</exclude>
468 <exclude>META-INF/resources/.eslintrc.js</exclude>
469 <exclude>META-INF/resources/.flowconfig</exclude>
Matthias Andreas Benkard89c25ea2020-06-15 21:01:01 +0200470 <exclude>META-INF/resources/.parcel-cache/**/*</exclude>
Matthias Andreas Benkard81996642020-06-15 21:11:30 +0200471 <exclude>META-INF/resources/dist/**/*</exclude>
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100472 <exclude>META-INF/resources/node_modules/**/*</exclude>
Matthias Andreas Benkard81996642020-06-15 21:11:30 +0200473 <exclude>META-INF/resources/web_modules/**/*</exclude>
Matthias Andreas Benkard97130f92020-01-27 21:03:39 +0100474 <exclude>META-INF/resources/package.json</exclude>
475 <exclude>META-INF/resources/yarn.lock</exclude>
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100476 </excludes>
477 <filtering>false</filtering>
478 </resource>
479 </resources>
480
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100481 </build>
482
483 <profiles>
484
485 <profile>
486
487 <id>native</id>
488
489 <activation>
490 <property>
491 <name>native</name>
492 </property>
493 </activation>
494
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100495 <properties>
496 <quarkus.package.type>native</quarkus.package.type>
497 </properties>
498
499 </profile>
500
501 </profiles>
502
503</project>