@@ -11,7 +11,7 @@ To utilize the GitLab API for Java in your project, simply add the following dep
11
11
``` java
12
12
dependencies {
13
13
...
14
- compile group: ' org.gitlab4j' , name: ' gitlab4j-api' , version: ' 4.9.5 '
14
+ compile group: ' org.gitlab4j' , name: ' gitlab4j-api' , version: ' 4.9.6 '
15
15
}
16
16
```
17
17
@@ -22,7 +22,7 @@ dependencies {
22
22
<dependency >
23
23
<groupId >org.gitlab4j</groupId >
24
24
<artifactId >gitlab4j-api</artifactId >
25
- <version >4.9.5 </version >
25
+ <version >4.9.6 </version >
26
26
</dependency >
27
27
```
28
28
@@ -70,6 +70,7 @@ gitLabApi.sudo("johndoe")
70
70
// To turn off sudo mode
71
71
gitLabApi. unsudo();
72
72
```
73
+
73
74
---
74
75
## Connecting Through a Proxy Server
75
76
As of GitLab4J-API 4.8.2 support has been added for connecting to the GitLab server using an HTTP proxy server:
@@ -130,13 +131,18 @@ while (projectsPager.hasNext())) {
130
131
}
131
132
}
132
133
```
133
- As of GitLab4J-API 4.9.2, you can also fetch all the items as a single list or get a Java 8+ Stream instance using a Pager instance:
134
+
135
+ As of GitLab4J-API 4.9.2, you can also fetch all the items as a single list using a Pager instance:
134
136
``` java
135
137
// Get a Pager instance so we can load all the projects into a single list, 10 items at a time:
136
138
Pager<Project > projectPager = gitlabApi. getProjectsApi(). getProjects(10 );
137
139
List<Project > allProjects = projectPager. all();
138
140
```
139
141
142
+ ---
143
+ ## Java 8 Stream Support
144
+ As of GitLab4J-API 4.9.2, you can also fetch all the items a Java 8+ Stream instance using a Pager instance:
145
+
140
146
``` java
141
147
// Get a Pager instance to get a Stream<Project> instance.
142
148
Pager<Project > projectPager = gitlabApi. getProjectsApi(). getProjects(10 );
@@ -155,6 +161,7 @@ if (optionalGroup.isPresent())
155
161
156
162
return gitlabApi. getGroupApi(). addGroup(" my-group-name" , " my-group-path" );
157
163
```
164
+
158
165
---
159
166
## Issue Time Estimates
160
167
GitLab issues allow for time tracking. The following time units are currently available:
0 commit comments