Skip to content

Commit e37c67e

Browse files
committed
Kotlin support
1 parent 21dcb9e commit e37c67e

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

pom.xml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<javac.target.version>1.8</javac.target.version>
2424
<scala.version>2.13</scala.version>
2525
<scala.full.version>2.13.3</scala.full.version>
26+
<kotlin.version>1.4.21</kotlin.version>
2627

2728
<!-- 13-Oct-2020, tatu: may need to occasionally work around missing Scala
2829
module snapshot version
@@ -60,6 +61,15 @@
6061
<artifactId>scala-library</artifactId>
6162
<version>${scala.full.version}</version>
6263
</dependency>
64+
<dependency>
65+
<groupId>com.fasterxml.jackson.module</groupId>
66+
<artifactId>jackson-module-kotlin</artifactId>
67+
</dependency>
68+
<dependency>
69+
<groupId>org.jetbrains.kotlin</groupId>
70+
<artifactId>kotlin-stdlib-jdk8</artifactId>
71+
<version>${kotlin.version}</version>
72+
</dependency>
6373

6474
<!-- first, try to ensure dataformats work -->
6575
<dependency>
@@ -211,14 +221,36 @@
211221
</execution>
212222
</executions>
213223
</plugin>
224+
<plugin>
225+
<groupId>org.jetbrains.kotlin</groupId>
226+
<artifactId>kotlin-maven-plugin</artifactId>
227+
<version>${kotlin.version}</version>
228+
<executions>
229+
<execution>
230+
<id>test-compile</id>
231+
<goals> <goal>test-compile</goal> </goals>
232+
<configuration>
233+
<sourceDirs>
234+
<sourceDir>${project.basedir}/src/test/kotlin</sourceDir>
235+
<sourceDir>${project.basedir}/src/test/java</sourceDir>
236+
</sourceDirs>
237+
</configuration>
238+
</execution>
239+
</executions>
240+
</plugin>
214241
<plugin>
215242
<groupId>org.apache.maven.plugins</groupId>
216243
<artifactId>maven-compiler-plugin</artifactId>
217244
<executions>
218245
<execution>
219-
<phase>compile</phase>
246+
<id>default-testCompile</id>
247+
<phase>none</phase>
248+
</execution>
249+
<execution>
250+
<id>java-test-compile</id>
251+
<phase>test-compile</phase>
220252
<goals>
221-
<goal>compile</goal>
253+
<goal>testCompile</goal>
222254
</goals>
223255
</execution>
224256
</executions>

0 commit comments

Comments
 (0)