|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
3 |
| - <modelVersion>4.0.0</modelVersion> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
4 | 4 | <parent>
|
5 | 5 | <groupId>com.fasterxml.jackson</groupId>
|
6 | 6 | <artifactId>jackson-base</artifactId>
|
|
23 | 23 | <javac.target.version>1.8</javac.target.version>
|
24 | 24 | <scala.version>2.13</scala.version>
|
25 | 25 | <scala.full.version>2.13.3</scala.full.version>
|
| 26 | + <kotlin.version>1.4.21</kotlin.version> |
26 | 27 |
|
27 | 28 | <!-- 13-Oct-2020, tatu: may need to occasionally work around missing Scala
|
28 | 29 | module snapshot version
|
|
60 | 61 | <artifactId>scala-library</artifactId>
|
61 | 62 | <version>${scala.full.version}</version>
|
62 | 63 | </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> |
63 | 73 |
|
64 | 74 | <!-- first, try to ensure dataformats work -->
|
65 | 75 | <dependency>
|
|
189 | 199 | <exclude>com/fasterxml/jackson/failing/*.java</exclude>
|
190 | 200 | </excludes>
|
191 | 201 | </configuration>
|
192 |
| - </plugin> |
| 202 | + </plugin> |
193 | 203 | <plugin>
|
194 | 204 | <groupId>net.alchim31.maven</groupId>
|
195 | 205 | <artifactId>scala-maven-plugin</artifactId>
|
|
211 | 221 | </execution>
|
212 | 222 | </executions>
|
213 | 223 | </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> |
| 232 | + <goal>test-compile</goal> |
| 233 | + </goals> |
| 234 | + <configuration> |
| 235 | + <sourceDirs> |
| 236 | + <sourceDir>${project.basedir}/src/test/kotlin</sourceDir> |
| 237 | + <sourceDir>${project.basedir}/src/test/java</sourceDir> |
| 238 | + </sourceDirs> |
| 239 | + </configuration> |
| 240 | + </execution> |
| 241 | + </executions> |
| 242 | + </plugin> |
214 | 243 | <plugin>
|
215 | 244 | <groupId>org.apache.maven.plugins</groupId>
|
216 | 245 | <artifactId>maven-compiler-plugin</artifactId>
|
217 | 246 | <executions>
|
218 | 247 | <execution>
|
219 |
| - <phase>compile</phase> |
| 248 | + <id>default-testCompile</id> |
| 249 | + <phase>none</phase> |
| 250 | + </execution> |
| 251 | + <execution> |
| 252 | + <id>java-test-compile</id> |
| 253 | + <phase>test-compile</phase> |
220 | 254 | <goals>
|
221 |
| - <goal>compile</goal> |
| 255 | + <goal>testCompile</goal> |
222 | 256 | </goals>
|
223 | 257 | </execution>
|
224 | 258 | </executions>
|
|
0 commit comments