Add Jackson Kotlin module to JSON starter

This commit adds the `jackson-module-kotlin` dependency to the JSON
starter. As the other modules selected there, the goal is to provide
additional Jackson support to Spring Boot projects.

In this case, the Kotlin language is supported by many Spring projects
and this module is essential for (de)serialization with Jackson.
Note that the module has a transitive dependency on `kotlin-reflect`,
but this dependency should be brought by the application itself.

Spring Framework will configure the Kotlin Jackson module *only if* the
Kotlin sdk is present.

Closes gh-9803
This commit is contained in:
Brian Clozel
2017-07-26 10:49:38 +02:00
parent 134e76d060
commit 4c64f4f80d
4 changed files with 13 additions and 3 deletions

View File

@@ -34,5 +34,15 @@
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-parameter-names</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-kotlin</artifactId>
<exclusions>
<exclusion>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-reflect</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>

View File

@@ -1 +1 @@
provides: jackson-databind,jackson-datatype-jdk8,jackson-datatype-jsr310,jackson-module-parameter-names
provides: jackson-databind,jackson-datatype-jdk8,jackson-datatype-jsr310,jackson-module-parameter-names,jackson-module-kotlin

View File

@@ -1 +1 @@
provides: spring-webmvc,spring-web,jackson-databind
provides: spring-webmvc,spring-web

View File

@@ -1 +1 @@
provides: spring-webflux,jackson-databind
provides: spring-webflux