File tree Expand file tree Collapse file tree 6 files changed +18
-12
lines changed
samples/client/petstore/java/jersey2-java8
src/main/java/io/swagger/client Expand file tree Collapse file tree 6 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ if(hasProperty('target') && target == 'android') {
94
94
95
95
ext {
96
96
swagger_annotations_version = " 1.5.8"
97
- jackson_version = " 2.7.0 "
97
+ jackson_version = " 2.7.5 "
98
98
jersey_version = " 2.22.2"
99
99
junit_version = " 4.12"
100
100
}
@@ -103,7 +103,7 @@ dependencies {
103
103
compile " io.swagger:swagger-annotations:$swagger_annotations_version "
104
104
compile " org.glassfish.jersey.core:jersey-client:$jersey_version "
105
105
compile " org.glassfish.jersey.media:jersey-media-multipart:$jersey_version "
106
- compile " org.glassfish.jersey.media:jersey-media-json-jackson:2.22.1 "
106
+ compile " org.glassfish.jersey.media:jersey-media-json-jackson:$j ersey_version "
107
107
compile " com.fasterxml.jackson.core:jackson-core:$jackson_version "
108
108
compile " com.fasterxml.jackson.core:jackson-annotations:$jackson_version "
109
109
compile " com.fasterxml.jackson.core:jackson-databind:$jackson_version "
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ lazy val root = (project in file(".")).
12
12
" io.swagger" % " swagger-annotations" % " 1.5.8" ,
13
13
" org.glassfish.jersey.core" % " jersey-client" % " 2.22.2" ,
14
14
" org.glassfish.jersey.media" % " jersey-media-multipart" % " 2.22.2" ,
15
- " org.glassfish.jersey.media" % " jersey-media-json-jackson" % " 2.22.1 " ,
16
- " com.fasterxml.jackson.core" % " jackson-core" % " 2.7.0 " ,
17
- " com.fasterxml.jackson.core" % " jackson-annotations" % " 2.7.0 " ,
18
- " com.fasterxml.jackson.core" % " jackson-databind" % " 2.7.0 " ,
19
- " com.fasterxml.jackson.datatype" % " jackson-datatype-jsr310" % " 2.7.0 " ,
15
+ " org.glassfish.jersey.media" % " jersey-media-json-jackson" % " 2.22.2 " ,
16
+ " com.fasterxml.jackson.core" % " jackson-core" % " 2.7.5 " ,
17
+ " com.fasterxml.jackson.core" % " jackson-annotations" % " 2.7.5 " ,
18
+ " com.fasterxml.jackson.core" % " jackson-databind" % " 2.7.5 " ,
19
+ " com.fasterxml.jackson.datatype" % " jackson-datatype-jsr310" % " 2.7.5 " ,
20
20
" com.brsanthu" % " migbase64" % " 2.2" ,
21
21
" junit" % " junit" % " 4.12" % " test" ,
22
22
" com.novocode" % " junit-interface" % " 0.10" % " test"
Original file line number Diff line number Diff line change
1
+ # Tue May 17 23:08:05 CST 2016
2
+ distributionBase =GRADLE_USER_HOME
3
+ distributionPath =wrapper/dists
4
+ zipStoreBase =GRADLE_USER_HOME
5
+ zipStorePath =wrapper/dists
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-2.6-bin.zip
Original file line number Diff line number Diff line change 52
52
<plugin >
53
53
<groupId >org.apache.maven.plugins</groupId >
54
54
<artifactId >maven-jar-plugin</artifactId >
55
- <version >2.2 </version >
55
+ <version >2.6 </version >
56
56
<executions >
57
57
<execution >
58
58
<goals >
98
98
<plugin >
99
99
<groupId >org.apache.maven.plugins</groupId >
100
100
<artifactId >maven-compiler-plugin</artifactId >
101
- <version >2.3.2 </version >
101
+ <version >2.5.1 </version >
102
102
<configuration >
103
103
<source >1.8</source >
104
104
<target >1.8</target >
127
127
<dependency >
128
128
<groupId >org.glassfish.jersey.media</groupId >
129
129
<artifactId >jersey-media-json-jackson</artifactId >
130
- <version >2.22.1 </version >
130
+ <version >${jersey-version} </version >
131
131
</dependency >
132
132
133
133
<!-- JSON processing: jackson -->
170
170
<properties >
171
171
<swagger-core-version >1.5.8</swagger-core-version >
172
172
<jersey-version >2.22.2</jersey-version >
173
- <jackson-version >2.7.0 </jackson-version >
173
+ <jackson-version >2.7.5 </jackson-version >
174
174
<maven-plugin-version >1.0.0</maven-plugin-version >
175
175
<junit-version >4.12</junit-version >
176
176
</properties >
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public JSON() {
19
19
mapper .disable (SerializationFeature .WRITE_DATES_AS_TIMESTAMPS );
20
20
mapper .enable (SerializationFeature .WRITE_ENUMS_USING_TO_STRING );
21
21
mapper .enable (DeserializationFeature .READ_ENUMS_USING_TO_STRING );
22
- mapper .registerModule (new JSR310Module ());
22
+ mapper .registerModule (new JavaTimeModule ());
23
23
}
24
24
25
25
/**
You can’t perform that action at this time.
0 commit comments