summaryrefslogtreecommitdiff
path: root/pom.xml
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-04-16 17:07:59 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-08-22 13:28:21 +0200
commit7e71d1c86f44617cfd09caedff1107bdcf27b255 (patch)
treea5610b34b21dfbd1429937a5e6fbd2a9df534cbe /pom.xml
parent43d59d3bb3448cdd1b43b7ad0aa085ed143eb4ef (diff)
Add Scala compiler.
Change-Id: I68ffcf35b1b6ea2e42a479bdb71f868a486781db
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml90
1 files changed, 90 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 5f7a1f1..c5261ca 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,6 +13,8 @@
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
+ <scala.version>2.13.3</scala.version>
+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
@@ -21,6 +23,7 @@
<quarkus.version>1.7.0.Final</quarkus.version>
<resources-plugin.version>3.1.0</resources-plugin.version>
<spotless-plugin.version>2.0.1</spotless-plugin.version>
+ <scala-plugin.version>4.4.0</scala-plugin.version>
<!-- <quarkus.platform.artifact-id>quarkus-universe-bom</quarkus.platform.artifact-id> -->
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
@@ -35,6 +38,7 @@
<jakarta-jacc-api.version>1.6.1</jakarta-jacc-api.version>
<jna.version>5.6.0</jna.version>
<jsoup.version>1.13.1</jsoup.version>
+ <kotlin-annotations.version>1.4.0</kotlin-annotations.version>
<liquibase.version>3.9.0</liquibase.version>
<postgresql.version>42.2.14</postgresql.version>
<rome.version>1.15.0</rome.version>
@@ -122,11 +126,26 @@
<dependencies>
<dependency>
+ <groupId>org.scala-lang</groupId>
+ <artifactId>scala-library</artifactId>
+ <version>${scala.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.scala-lang</groupId>
+ <artifactId>scala-reflect</artifactId>
+ <version>${scala.version}</version>
+ </dependency>
+
+ <dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-agroal</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
+ <artifactId>quarkus-scala</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>io.quarkus</groupId>
<artifactId>quarkus-elytron-security-properties-file</artifactId>
</dependency>
<dependency>
@@ -368,6 +387,77 @@
</executions>
</plugin>
+ <plugin>
+ <groupId>net.alchim31.maven</groupId>
+ <artifactId>scala-maven-plugin</artifactId>
+ <version>${scala-plugin.version}</version>
+
+ <executions>
+ <execution>
+ <id>scala-compile-first</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>add-source</goal>
+ <goal>compile</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>scala-test-compile</id>
+ <phase>process-test-resources</phase>
+ <goals>
+ <goal>add-source</goal>
+ <goal>testCompile</goal>
+ </goals>
+ </execution>
+ </executions>
+
+ <configuration>
+ <scalaVersion>${scala.version}</scalaVersion>
+ <localInstall>false</localInstall>
+ <!--<recompileMode>incremental</recompileMode>-->
+ <args>
+ <arg>-Xsource:3</arg>
+ <!--
+ <arg>-deprecation</arg>
+ <arg>-feature</arg>
+ <arg>-explaintypes</arg>
+ <arg>-target:jvm-1.8</arg>
+ <arg>-Ypartial-unification</arg>
+ -->
+ </args>
+
+ <javacArgs>
+ <javacArg>-Xlint:deprecation</javacArg>
+ </javacArgs>
+
+ <additionalDependencies>
+
+ <!-- Hibernate -->
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-jpamodelgen</artifactId>
+ <version>${hibernate.version}</version>
+ </dependency>
+
+ <!-- Quarkus -->
+ <dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-panache-common</artifactId>
+ <version>${quarkus.version}</version>
+ </dependency>
+
+ <!-- Annotations -->
+ <dependency>
+ <groupId>org.jetbrains.kotlin</groupId>
+ <artifactId>kotlin-annotations-jvm</artifactId>
+ <version>${kotlin-annotations.version}</version>
+ </dependency>
+
+ </additionalDependencies>
+ </configuration>
+
+ </plugin>
+
</plugins>
<resources>