File tree Expand file tree Collapse file tree 3 files changed +24
-15
lines changed
src/main/java/com/alfresco/cloud/example Expand file tree Collapse file tree 3 files changed +24
-15
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<projectDescription >
3
- <name >alfresco-cloud-example</name >
4
- <comment >NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.</comment >
5
- <projects />
6
- <buildSpec >
7
- <buildCommand >
8
- <name >org.eclipse.jdt.core.javabuilder</name >
9
- </buildCommand >
10
- </buildSpec >
11
- <natures >
12
- <nature >org.eclipse.jdt.core.javanature</nature >
13
- </natures >
14
- </projectDescription >
3
+ <name >alfresco-cloud-example</name >
4
+ <comment >NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.</comment >
5
+ <projects >
6
+ </projects >
7
+ <buildSpec >
8
+ <buildCommand >
9
+ <name >org.eclipse.jdt.core.javabuilder</name >
10
+ <arguments >
11
+ </arguments >
12
+ </buildCommand >
13
+ <buildCommand >
14
+ <name >org.eclipse.m2e.core.maven2Builder</name >
15
+ <arguments >
16
+ </arguments >
17
+ </buildCommand >
18
+ </buildSpec >
19
+ <natures >
20
+ <nature >org.eclipse.m2e.core.maven2Nature</nature >
21
+ <nature >org.eclipse.jdt.core.javanature</nature >
22
+ </natures >
23
+ </projectDescription >
Original file line number Diff line number Diff line change 37
37
<dependency >
38
38
<groupId >com.google.oauth-client</groupId >
39
39
<artifactId >google-oauth-client</artifactId >
40
- <version >1.10 .1-beta</version >
40
+ <version >1.13 .1-beta</version >
41
41
</dependency >
42
42
<dependency >
43
43
<groupId >javax.servlet</groupId >
Original file line number Diff line number Diff line change 41
41
import com .google .api .client .http .HttpRequestInitializer ;
42
42
import com .google .api .client .http .HttpTransport ;
43
43
import com .google .api .client .http .javanet .NetHttpTransport ;
44
- import com .google .api .client .http .json .JsonHttpParser ;
45
44
import com .google .api .client .json .JsonFactory ;
45
+ import com .google .api .client .json .JsonObjectParser ;
46
46
import com .google .api .client .json .jackson .JacksonFactory ;
47
47
48
48
/**
@@ -101,7 +101,7 @@ public void run() throws Exception {
101
101
@ Override
102
102
public void initialize (HttpRequest request ) throws IOException {
103
103
credential .initialize (request );
104
- request .addParser (new JsonHttpParser ( JSON_FACTORY ));
104
+ request .setParser (new JsonObjectParser ( new JacksonFactory () ));
105
105
}
106
106
});
107
107
You can’t perform that action at this time.
0 commit comments