#7123 use correct jackson date library when using Java 8 (#7285)

This commit is contained in:
Dennis Kieselhorst 2018-01-28 17:23:06 +01:00 committed by William Cheng
parent 6bc84eeee1
commit 298ca8d352
3 changed files with 36 additions and 11 deletions

View File

@ -154,12 +154,20 @@
<version>${jackson-jaxrs-version}</version> <version>${jackson-jaxrs-version}</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
{{#java8}}
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>${jackson-jaxrs-version}</version>
</dependency>
{{/java8}}
{{^java8}}
<dependency> <dependency>
<groupId>com.fasterxml.jackson.datatype</groupId> <groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-joda</artifactId> <artifactId>jackson-datatype-joda</artifactId>
<version>${jackson-jaxrs-version}</version> <version>${jackson-jaxrs-version}</version>
<scope>compile</scope>
</dependency> </dependency>
{{/java8}}
{{#useBeanValidationFeature}} {{#useBeanValidationFeature}}
<dependency> <dependency>
<groupId>org.hibernate</groupId> <groupId>org.hibernate</groupId>

View File

@ -169,12 +169,20 @@
<version>${jackson-jaxrs-version}</version> <version>${jackson-jaxrs-version}</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
{{#java8}}
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>${jackson-jaxrs-version}</version>
</dependency>
{{/java8}}
{{^java8}}
<dependency> <dependency>
<groupId>com.fasterxml.jackson.datatype</groupId> <groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-joda</artifactId> <artifactId>jackson-datatype-joda</artifactId>
<version>${jackson-jaxrs-version}</version> <version>${jackson-jaxrs-version}</version>
<scope>compile</scope>
</dependency> </dependency>
{{/java8}}
{{#generateSpringApplication}} {{#generateSpringApplication}}
<!-- Spring --> <!-- Spring -->
<dependency> <dependency>

View File

@ -133,11 +133,20 @@
<artifactId>jersey-media-multipart</artifactId> <artifactId>jersey-media-multipart</artifactId>
<version>${jersey2-version}</version> <version>${jersey2-version}</version>
</dependency> </dependency>
{{#java8}}
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>${jackson-version}</version>
</dependency>
{{/java8}}
{{^java8}}
<dependency> <dependency>
<groupId>com.fasterxml.jackson.datatype</groupId> <groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-joda</artifactId> <artifactId>jackson-datatype-joda</artifactId>
<version>${jackson-version}</version> <version>${jackson-version}</version>
</dependency> </dependency>
{{/java8}}
<dependency> <dependency>
<groupId>com.fasterxml.jackson.jaxrs</groupId> <groupId>com.fasterxml.jackson.jaxrs</groupId>
<artifactId>jackson-jaxrs-json-provider</artifactId> <artifactId>jackson-jaxrs-json-provider</artifactId>