blob: 037c7c33b985f6d93cf42b2f85b07ff6fb3c94bf [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 Benkard47587c22020-08-22 18:41:47 +020023 <processor-plugin.version>4.2</processor-plugin.version>
Matthias Andreas Benkard43d59d32020-08-16 10:57:23 +020024 <quarkus.version>1.7.0.Final</quarkus.version>
Matthias Andreas Benkard813e5972020-06-14 19:27:42 +020025 <resources-plugin.version>3.1.0</resources-plugin.version>
Matthias Andreas Benkard3f986ef2020-08-22 13:28:33 +020026 <scalafmt.version>2.6.3</scalafmt.version>
27 <spotless-plugin.version>2.0.3</spotless-plugin.version>
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +020028 <scala-plugin.version>4.4.0</scala-plugin.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010029
Matthias Andreas Benkard2710bf32020-01-25 10:48:07 +010030 <!-- <quarkus.platform.artifact-id>quarkus-universe-bom</quarkus.platform.artifact-id> -->
31 <quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010032 <quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010033
Matthias Andreas Benkard1e7674c2020-04-18 20:28:51 +020034 <basic-annotations.version>0.2.0</basic-annotations.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010035 <findbugs-jsr305.version>3.0.2</findbugs-jsr305.version>
Matthias Andreas Benkard6b7e9412020-06-22 18:13:16 +020036 <flexmark.version>0.62.2</flexmark.version>
Matthias Andreas Benkarda0392372020-06-13 15:46:39 +020037 <google.java.format.version>1.8</google.java.format.version>
Matthias Andreas Benkard43d59d32020-08-16 10:57:23 +020038 <hibernate.version>5.4.20.Final</hibernate.version>
39 <hibernate-types.version>2.9.13</hibernate-types.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010040 <jakarta-jacc-api.version>1.6.1</jakarta-jacc-api.version>
Matthias Andreas Benkardaa196aa2020-07-18 12:36:57 +020041 <jna.version>5.6.0</jna.version>
Matthias Andreas Benkard551f50c2020-03-15 12:34:07 +010042 <jsoup.version>1.13.1</jsoup.version>
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +020043 <kotlin-annotations.version>1.4.0</kotlin-annotations.version>
Matthias Andreas Benkard80fc4312020-06-13 16:59:04 +020044 <liquibase.version>3.9.0</liquibase.version>
45 <postgresql.version>42.2.14</postgresql.version>
Matthias Andreas Benkardaa196aa2020-07-18 12:36:57 +020046 <rome.version>1.15.0</rome.version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010047 </properties>
48
49 <dependencyManagement>
50 <dependencies>
51
52 <dependency>
53 <groupId>${quarkus.platform.group-id}</groupId>
54 <artifactId>${quarkus.platform.artifact-id}</artifactId>
Matthias Andreas Benkard43d59d32020-08-16 10:57:23 +020055 <version>${quarkus.version}</version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010056 <type>pom</type>
57 <scope>import</scope>
58 </dependency>
59
60 <!-- Hibernate PostgreSQL Extra Types -->
61 <dependency>
62 <groupId>com.vladmihalcea</groupId>
63 <artifactId>hibernate-types-52</artifactId>
64 <version>${hibernate-types.version}</version>
65 </dependency>
66
Matthias Andreas Benkard1e7674c2020-04-18 20:28:51 +020067 <!-- Annotations -->
68 <dependency>
69 <groupId>pl.tlinkowski.annotation</groupId>
70 <artifactId>pl.tlinkowski.annotation.basic</artifactId>
71 <version>${basic-annotations.version}</version>
72 <scope>provided</scope>
73 </dependency>
74
Matthias Andreas Benkard4e29a242020-01-25 05:38:27 +010075 <!-- Jsoup -->
76 <dependency>
77 <groupId>org.jsoup</groupId>
78 <artifactId>jsoup</artifactId>
79 <version>${jsoup.version}</version>
80 </dependency>
81
Matthias Andreas Benkard424e16e2020-02-09 18:29:56 +010082 <!-- FlexMark -->
83 <dependency>
84 <groupId>com.vladsch.flexmark</groupId>
85 <artifactId>flexmark-all</artifactId>
86 <version>${flexmark.version}</version>
87 </dependency>
88
Matthias Andreas Benkard981f2792020-02-16 14:54:54 +010089 <!-- Rome -->
90 <dependency>
91 <groupId>com.rometools</groupId>
92 <artifactId>rome</artifactId>
93 <version>${rome.version}</version>
94 </dependency>
95
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +010096 <!-- JNA -->
97 <dependency>
98 <groupId>net.java.dev.jna</groupId>
99 <artifactId>jna</artifactId>
100 <version>${jna.version}</version>
101 </dependency>
102
103 <!-- JACC -->
104 <dependency>
105 <groupId>jakarta.security.jacc</groupId>
106 <artifactId>jakarta.security.jacc-api</artifactId>
107 <version>${jakarta-jacc-api.version}</version>
108 </dependency>
109
Matthias Andreas Benkard2a1383f2020-02-01 23:53:17 +0100110 <!-- JOSE for Java -->
111 <dependency>
112 <groupId>org.bitbucket.b_c</groupId>
113 <artifactId>jose4j</artifactId>
114 <version>0.7.0</version>
115 </dependency>
116
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100117 <!-- Annotations -->
118 <dependency>
119 <groupId>com.google.code.findbugs</groupId>
120 <artifactId>jsr305</artifactId>
121 <version>${findbugs-jsr305.version}</version>
122 <scope>provided</scope>
123 </dependency>
124
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100125 </dependencies>
126 </dependencyManagement>
127
128 <dependencies>
129
130 <dependency>
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +0200131 <groupId>org.scala-lang</groupId>
132 <artifactId>scala-library</artifactId>
133 <version>${scala.version}</version>
134 </dependency>
135 <dependency>
136 <groupId>org.scala-lang</groupId>
137 <artifactId>scala-reflect</artifactId>
138 <version>${scala.version}</version>
139 </dependency>
Matthias Andreas Benkardb0c0e1e2020-08-22 18:40:46 +0200140 <dependency>
141 <groupId>org.scala-lang</groupId>
142 <artifactId>scala-compiler</artifactId>
143 <version>${scala.version}</version>
144 </dependency>
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +0200145
146 <dependency>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100147 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100148 <artifactId>quarkus-agroal</artifactId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100149 </dependency>
150 <dependency>
151 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +0200152 <artifactId>quarkus-scala</artifactId>
153 </dependency>
154 <dependency>
155 <groupId>io.quarkus</groupId>
Matthias Andreas Benkardc27d1cb2020-01-26 11:11:24 +0100156 <artifactId>quarkus-elytron-security-properties-file</artifactId>
157 </dependency>
158 <dependency>
159 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100160 <artifactId>quarkus-hibernate-orm-panache</artifactId>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100161 </dependency>
162 <dependency>
163 <groupId>io.quarkus</groupId>
164 <artifactId>quarkus-hibernate-validator</artifactId>
165 </dependency>
166 <dependency>
167 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100168 <artifactId>quarkus-jdbc-postgresql</artifactId>
169 </dependency>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100170 <dependency>
171 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard80fc4312020-06-13 16:59:04 +0200172 <artifactId>quarkus-liquibase</artifactId>
173 </dependency>
174 <dependency>
175 <groupId>io.quarkus</groupId>
Matthias Andreas Benkard4cb34f42020-01-24 14:44:28 +0100176 <artifactId>quarkus-oidc</artifactId>
177 </dependency>
178 <dependency>
179 <groupId>io.quarkus</groupId>
180 <artifactId>quarkus-resteasy</artifactId>
181 </dependency>
182 <dependency>
183 <groupId>io.quarkus</groupId>
184 <artifactId>quarkus-resteasy-jsonb</artifactId>
185 </dependency>
186 <dependency>
187 <groupId>io.quarkus</groupId>
188 <artifactId>quarkus-resteasy-qute</artifactId>
189 </dependency>
Matthias Andreas Benkard2a1383f2020-02-01 23:53:17 +0100190 <dependency>
191 <groupId>io.quarkus</groupId>
192 <artifactId>quarkus-smallrye-jwt</artifactId>
193 </dependency>
Matthias Andreas Benkarddb48be42020-04-17 21:44:59 +0200194 <dependency>
195 <groupId>io.quarkus</groupId>
196 <artifactId>quarkus-container-image-jib</artifactId>
197 </dependency>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100198
199 <!-- JNA -->
200 <dependency>
201 <groupId>net.java.dev.jna</groupId>
202 <artifactId>jna</artifactId>
203 </dependency>
204
205 <!-- JACC -->
206 <dependency>
207 <groupId>jakarta.security.jacc</groupId>
208 <artifactId>jakarta.security.jacc-api</artifactId>
209 </dependency>
210
211 <!-- Hibernate PostgreSQL Extra Types -->
212 <dependency>
213 <groupId>com.vladmihalcea</groupId>
214 <artifactId>hibernate-types-52</artifactId>
215 </dependency>
216
Matthias Andreas Benkard1e7674c2020-04-18 20:28:51 +0200217 <!-- Annotations -->
218 <dependency>
219 <groupId>pl.tlinkowski.annotation</groupId>
220 <artifactId>pl.tlinkowski.annotation.basic</artifactId>
221 <scope>provided</scope>
222 </dependency>
223
Matthias Andreas Benkard4e29a242020-01-25 05:38:27 +0100224 <!-- Jsoup -->
225 <dependency>
226 <groupId>org.jsoup</groupId>
227 <artifactId>jsoup</artifactId>
228 </dependency>
229
Matthias Andreas Benkard424e16e2020-02-09 18:29:56 +0100230 <!-- FlexMark -->
231 <dependency>
232 <groupId>com.vladsch.flexmark</groupId>
233 <artifactId>flexmark-all</artifactId>
234 </dependency>
235
Matthias Andreas Benkard981f2792020-02-16 14:54:54 +0100236 <!-- Rome -->
237 <dependency>
238 <groupId>com.rometools</groupId>
239 <artifactId>rome</artifactId>
240 </dependency>
241
Matthias Andreas Benkard2a1383f2020-02-01 23:53:17 +0100242 <!-- JOSE for Java -->
243 <dependency>
244 <groupId>org.bitbucket.b_c</groupId>
245 <artifactId>jose4j</artifactId>
246 </dependency>
247
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100248 <!-- Annotations -->
249 <dependency>
250 <groupId>com.google.code.findbugs</groupId>
251 <artifactId>jsr305</artifactId>
252 <scope>provided</scope>
253 </dependency>
Matthias Andreas Benkard47587c22020-08-22 18:41:47 +0200254 <dependency>
255 <groupId>org.jetbrains.kotlin</groupId>
256 <artifactId>kotlin-annotations-jvm</artifactId>
257 <version>${kotlin-annotations.version}</version>
258 <scope>provided</scope>
259 </dependency>
260
261 <!-- Hibernate -->
262 <dependency>
263 <groupId>org.hibernate</groupId>
264 <artifactId>hibernate-jpamodelgen</artifactId>
265 <version>${hibernate.version}</version>
266 <scope>provided</scope>
267 </dependency>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100268
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100269 </dependencies>
270
271 <build>
272
273 <plugins>
274
275 <plugin>
276 <groupId>io.quarkus</groupId>
277 <artifactId>quarkus-maven-plugin</artifactId>
Matthias Andreas Benkard43d59d32020-08-16 10:57:23 +0200278 <version>${quarkus.version}</version>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100279 <executions>
280 <execution>
281 <goals>
282 <goal>build</goal>
283 </goals>
284 </execution>
285 </executions>
286 </plugin>
287
288 <plugin>
289 <artifactId>maven-compiler-plugin</artifactId>
290 <version>${compiler-plugin.version}</version>
Matthias Andreas Benkard98e63f02020-04-18 19:45:48 +0200291 <configuration>
Matthias Andreas Benkard47587c22020-08-22 18:41:47 +0200292 <compilerArgs>
293 <arg>-proc:none</arg>
294 </compilerArgs>
Matthias Andreas Benkard98e63f02020-04-18 19:45:48 +0200295 </configuration>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100296 </plugin>
297
Matthias Andreas Benkard813e5972020-06-14 19:27:42 +0200298 <!-- Resources -->
299 <plugin>
300 <artifactId>maven-resources-plugin</artifactId>
301 <version>${resources-plugin.version}</version>
302 <executions>
303 <execution>
304 <id>copy-resources</id>
305 <phase>prepare-package</phase>
306 <goals>
307 <goal>copy-resources</goal>
308 </goals>
309 <configuration>
310 <outputDirectory>${basedir}/target/classes/META-INF/resources</outputDirectory>
311 <resources>
312 <resource>
313 <directory>${basedir}/src/main/resources/META-INF/resources/dist</directory>
314 <filtering>true</filtering>
315 </resource>
316 </resources>
317 </configuration>
318 </execution>
319 </executions>
320 </plugin>
321
Matthias Andreas Benkard80fc4312020-06-13 16:59:04 +0200322 <!-- Liquibase -->
323 <plugin>
324 <groupId>org.liquibase</groupId>
325 <artifactId>liquibase-maven-plugin</artifactId>
326 <version>${liquibase.version}</version>
327 <configuration>
328 <propertyFile>src/main/resources/db/liquibase.properties</propertyFile>
329 </configuration>
330 <dependencies>
331 <dependency>
332 <groupId>org.liquibase.ext</groupId>
333 <artifactId>liquibase-hibernate5</artifactId> <!-- note: I tried hibernate4 release version as well -->
334 <version>${liquibase.version}</version>
335 </dependency>
336 <dependency>
337 <groupId>org.hibernate</groupId>
338 <artifactId>hibernate-core</artifactId>
339 <version>${hibernate.version}</version>
340 </dependency>
341 <dependency>
342 <groupId>org.hibernate</groupId>
343 <artifactId>hibernate-entitymanager</artifactId>
344 <version>${hibernate.version}</version>
345 </dependency>
346 <dependency>
347 <groupId>org.hibernate</groupId>
348 <artifactId>hibernate-envers</artifactId>
349 <version>${hibernate.version}</version>
350 </dependency>
351 <dependency>
352 <groupId>org.postgresql</groupId>
353 <artifactId>postgresql</artifactId>
354 <version>${postgresql.version}</version>
355 </dependency>
356 </dependencies>
357 </plugin>
358
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100359 <!-- Google Java Code Formatter, for enforcing style conventions -->
360 <plugin>
361 <groupId>com.diffplug.spotless</groupId>
362 <artifactId>spotless-maven-plugin</artifactId>
363 <version>${spotless-plugin.version}</version>
364 <configuration>
365 <java>
366 <removeUnusedImports/>
367 <importOrder>
368 <order>java,javax,org,com,de,io,dagger,eu.mulk,</order>
369 </importOrder>
370 <googleJavaFormat>
371 <version>${google.java.format.version}</version>
372 <style>GOOGLE</style>
373 </googleJavaFormat>
374 </java>
Matthias Andreas Benkard3f986ef2020-08-22 13:28:33 +0200375
376 <scala>
377 <scalafmt>
378 <version>${scalafmt.version}</version>
379 <file>${basedir}/.scalafmt.conf</file>
380 </scalafmt>
381 </scala>
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100382 </configuration>
383 </plugin>
Matthias Andreas Benkardf7bf7c42020-01-28 22:31:12 +0100384
385 <plugin>
Matthias Andreas Benkard7f4dacc2020-04-13 11:25:19 +0200386 <artifactId>maven-antrun-plugin</artifactId>
387 <version>${antrun-plugin.version}</version>
388 <executions>
389 <execution>
390 <phase>generate-resources</phase>
391 <configuration>
392 <target>
393 <ant target="web.resources" />
394 </target>
395 </configuration>
396 <goals>
397 <goal>run</goal>
398 </goals>
399 </execution>
400 </executions>
401 </plugin>
402
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +0200403 <plugin>
Matthias Andreas Benkard47587c22020-08-22 18:41:47 +0200404 <groupId>org.bsc.maven</groupId>
405 <artifactId>maven-processor-plugin</artifactId>
406 <version>${processor-plugin.version}</version>
407 <executions>
408 <execution>
409 <id>process</id>
410 <goals>
411 <goal>process</goal>
412 </goals>
413 <phase>generate-sources</phase>
414 </execution>
415 <execution>
416 <id>process-test</id>
417 <goals>
418 <goal>process-test</goal>
419 </goals>
420 <phase>generate-test-sources</phase>
421 </execution>
422 </executions>
423 </plugin>
424
425 <plugin>
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +0200426 <groupId>net.alchim31.maven</groupId>
427 <artifactId>scala-maven-plugin</artifactId>
428 <version>${scala-plugin.version}</version>
429
430 <executions>
431 <execution>
432 <id>scala-compile-first</id>
433 <phase>process-resources</phase>
434 <goals>
435 <goal>add-source</goal>
436 <goal>compile</goal>
437 </goals>
438 </execution>
439 <execution>
440 <id>scala-test-compile</id>
441 <phase>process-test-resources</phase>
442 <goals>
443 <goal>add-source</goal>
444 <goal>testCompile</goal>
445 </goals>
446 </execution>
447 </executions>
448
449 <configuration>
450 <scalaVersion>${scala.version}</scalaVersion>
451 <localInstall>false</localInstall>
452 <!--<recompileMode>incremental</recompileMode>-->
453 <args>
454 <arg>-Xsource:3</arg>
455 <!--
456 <arg>-deprecation</arg>
457 <arg>-feature</arg>
458 <arg>-explaintypes</arg>
459 <arg>-target:jvm-1.8</arg>
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +0200460 -->
461 </args>
462
463 <javacArgs>
464 <javacArg>-Xlint:deprecation</javacArg>
Matthias Andreas Benkard47587c22020-08-22 18:41:47 +0200465 <javacArg>-proc:none</javacArg>
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +0200466 </javacArgs>
Matthias Andreas Benkard7e71d1c2020-04-16 17:07:59 +0200467 </configuration>
468
469 </plugin>
470
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100471 </plugins>
472
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100473 <resources>
474 <resource>
475 <directory>src/main/resources</directory>
476 <excludes>
Matthias Andreas Benkard81996642020-06-15 21:11:30 +0200477 <exclude>META-INF/resources/.cache</exclude>
478 <exclude>META-INF/resources/.eslintrc.js</exclude>
479 <exclude>META-INF/resources/.flowconfig</exclude>
Matthias Andreas Benkard89c25ea2020-06-15 21:01:01 +0200480 <exclude>META-INF/resources/.parcel-cache/**/*</exclude>
Matthias Andreas Benkard81996642020-06-15 21:11:30 +0200481 <exclude>META-INF/resources/dist/**/*</exclude>
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100482 <exclude>META-INF/resources/node_modules/**/*</exclude>
Matthias Andreas Benkard81996642020-06-15 21:11:30 +0200483 <exclude>META-INF/resources/web_modules/**/*</exclude>
Matthias Andreas Benkard97130f92020-01-27 21:03:39 +0100484 <exclude>META-INF/resources/package.json</exclude>
485 <exclude>META-INF/resources/yarn.lock</exclude>
Matthias Andreas Benkardb712a012020-01-26 08:10:49 +0100486 </excludes>
487 <filtering>false</filtering>
488 </resource>
489 </resources>
490
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100491 </build>
492
493 <profiles>
494
495 <profile>
496
497 <id>native</id>
498
499 <activation>
500 <property>
501 <name>native</name>
502 </property>
503 </activation>
504
Matthias Andreas Benkard8ddaf662020-01-19 20:21:57 +0100505 <properties>
506 <quarkus.package.type>native</quarkus.package.type>
507 </properties>
508
509 </profile>
510
511 </profiles>
512
513</project>