File tree 14 files changed +21
-21
lines changed
appengine-java8/cloudsql-postgres
src/main/java/com.example.cloudtasks
14 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 78
78
<dependency >
79
79
<groupId >com.google.cloud.sql</groupId >
80
80
<artifactId >postgres-socket-factory</artifactId >
81
- <version >1.0.4 </version >
81
+ <version >1.0.5 </version >
82
82
</dependency >
83
83
<!-- [END dependencies] -->
84
84
</dependencies >
Original file line number Diff line number Diff line change 80
80
<dependency >
81
81
<groupId >com.google.cloud.sql</groupId >
82
82
<artifactId >mysql-socket-factory</artifactId >
83
- <version >1.0.4 </version >
83
+ <version >1.0.5 </version >
84
84
</dependency >
85
85
<!-- [END dependencies] -->
86
86
</dependencies >
Original file line number Diff line number Diff line change 39
39
<dependency >
40
40
<groupId >com.google.apis</groupId >
41
41
<artifactId >google-api-services-cloudtasks</artifactId >
42
- <version >v2beta2-rev16 -1.23.0</version >
42
+ <version >v2beta2-rev31 -1.23.0</version >
43
43
</dependency >
44
44
<dependency >
45
45
<groupId >com.google.api-client</groupId >
68
68
<dependency >
69
69
<groupId >com.google.truth</groupId >
70
70
<artifactId >truth</artifactId >
71
- <version >0.36 </version >
71
+ <version >0.39 </version >
72
72
<scope >test</scope >
73
73
</dependency >
74
74
</dependencies >
Original file line number Diff line number Diff line change 25
25
import com .google .api .services .cloudtasks .v2beta2 .CloudTasksScopes ;
26
26
import com .google .api .services .cloudtasks .v2beta2 .model .AcknowledgeTaskRequest ;
27
27
import com .google .api .services .cloudtasks .v2beta2 .model .CreateTaskRequest ;
28
+ import com .google .api .services .cloudtasks .v2beta2 .model .LeaseTasksRequest ;
29
+ import com .google .api .services .cloudtasks .v2beta2 .model .LeaseTasksResponse ;
28
30
import com .google .api .services .cloudtasks .v2beta2 .model .PullMessage ;
29
- import com .google .api .services .cloudtasks .v2beta2 .model .PullTasksRequest ;
30
- import com .google .api .services .cloudtasks .v2beta2 .model .PullTasksResponse ;
31
31
import com .google .api .services .cloudtasks .v2beta2 .model .Task ;
32
32
import com .google .common .io .BaseEncoding ;
33
33
import java .io .IOException ;
@@ -110,15 +110,15 @@ private static Task pullTask(
110
110
CloudTasks client = createAuthorizedClient ();
111
111
112
112
// Create the PullTasksRequest
113
- PullTasksRequest request = new PullTasksRequest ().setMaxTasks (1 ).setLeaseDuration ("600s" );
113
+ LeaseTasksRequest request = new LeaseTasksRequest ().setMaxTasks (1 ).setLeaseDuration ("600s" );
114
114
115
115
//Execute the request and return the pulled task
116
- PullTasksResponse response = client
116
+ LeaseTasksResponse response = client
117
117
.projects ()
118
118
.locations ()
119
119
.queues ()
120
120
.tasks ()
121
- .pull (queueName , request )
121
+ .lease (queueName , request )
122
122
.execute ();
123
123
return response .getTasks ().get (0 );
124
124
}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ limitations under the License.
32
32
<properties >
33
33
<maven .compiler.target>1.8</maven .compiler.target>
34
34
<maven .compiler.source>1.8</maven .compiler.source>
35
- <project .compute.version>v1-rev165 -1.23.0</project .compute.version>
35
+ <project .compute.version>v1-rev166 -1.23.0</project .compute.version>
36
36
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
37
37
</properties >
38
38
Original file line number Diff line number Diff line change 43
43
<dependency >
44
44
<groupId >com.google.apis</groupId >
45
45
<artifactId >google-api-services-cloudtasks</artifactId >
46
- <version >v2beta2-rev30 -1.23.0</version >
46
+ <version >v2beta2-rev31 -1.23.0</version >
47
47
</dependency >
48
48
<dependency >
49
49
<groupId >com.google.appengine</groupId >
Original file line number Diff line number Diff line change 81
81
<dependency >
82
82
<groupId >com.google.cloud.sql</groupId >
83
83
<artifactId >mysql-socket-factory-connector-j-6</artifactId >
84
- <version >1.0.4 </version >
84
+ <version >1.0.5 </version >
85
85
</dependency >
86
86
<!-- [END dependencies] -->
87
87
</dependencies >
Original file line number Diff line number Diff line change 82
82
<dependency >
83
83
<groupId >com.google.cloud.sql</groupId >
84
84
<artifactId >postgres-socket-factory</artifactId >
85
- <version >1.0.4 </version >
85
+ <version >1.0.5 </version >
86
86
</dependency >
87
87
<!-- [END dependencies] -->
88
88
</dependencies >
Original file line number Diff line number Diff line change 63
63
<dependency >
64
64
<groupId >com.nimbusds</groupId >
65
65
<artifactId >nimbus-jose-jwt</artifactId >
66
- <version >5.3 </version >
66
+ <version >5.4 </version >
67
67
</dependency >
68
68
<!-- [END dependencies] -->
69
69
Original file line number Diff line number Diff line change 39
39
<dependency >
40
40
<groupId >com.google.cloud</groupId >
41
41
<artifactId >google-cloud-logging</artifactId >
42
- <version >1.4 .0</version >
42
+ <version >1.14 .0</version >
43
43
</dependency >
44
44
45
45
<!-- Test dependencies -->
52
52
<dependency >
53
53
<groupId >com.google.truth</groupId >
54
54
<artifactId >truth</artifactId >
55
- <version >0.34 </version >
55
+ <version >0.39 </version >
56
56
<scope >test</scope >
57
57
</dependency >
58
58
</dependencies >
Original file line number Diff line number Diff line change 39
39
<dependency >
40
40
<groupId >com.google.cloud</groupId >
41
41
<artifactId >google-cloud-logging-logback</artifactId >
42
- <version >0.22 .0-alpha</version >
42
+ <version >0.32 .0-alpha</version >
43
43
</dependency >
44
44
45
45
<!-- Test dependencies -->
52
52
<dependency >
53
53
<groupId >com.google.truth</groupId >
54
54
<artifactId >truth</artifactId >
55
- <version >0.34 </version >
55
+ <version >0.39 </version >
56
56
<scope >test</scope >
57
57
</dependency >
58
58
</dependencies >
Original file line number Diff line number Diff line change 38
38
<dependency >
39
39
<groupId >com.google.apis</groupId >
40
40
<artifactId >google-api-services-storage</artifactId >
41
- <version >v1-rev118 -1.23.0</version >
41
+ <version >v1-rev119 -1.23.0</version >
42
42
<exclusions >
43
43
<exclusion > <!-- exclude an old version of Guava -->
44
44
<groupId >com.google.guava</groupId >
Original file line number Diff line number Diff line change 38
38
<dependency >
39
39
<groupId >com.google.apis</groupId >
40
40
<artifactId >google-api-services-storagetransfer</artifactId >
41
- <version >v1-rev40 -1.23.0</version >
41
+ <version >v1-rev42 -1.23.0</version >
42
42
<exclusions >
43
43
<exclusion > <!-- exclude an old version of Guava -->
44
44
<groupId >com.google.guava</groupId >
Original file line number Diff line number Diff line change 66
66
<dependency >
67
67
<groupId >com.google.apis</groupId >
68
68
<artifactId >google-api-services-storage</artifactId >
69
- <version >v1-rev118 -1.23.0</version >
69
+ <version >v1-rev119 -1.23.0</version >
70
70
<exclusions >
71
71
<exclusion > <!-- exclude an old version of Guava -->
72
72
<groupId >com.google.guava</groupId >
You can’t perform that action at this time.
0 commit comments