From 6614e3014136bd97342a365acfbdad7bfd87ad31 Mon Sep 17 00:00:00 2001 From: Greg Messner Date: Fri, 14 Dec 2018 16:19:26 -0800 Subject: [PATCH] Bumped version to 4.9.6 --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 159604bb..655465a4 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ To utilize the GitLab API for Java in your project, simply add the following dep ```java dependencies { ... - compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.9.5' + compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.9.6' } ``` @@ -22,7 +22,7 @@ dependencies { org.gitlab4j gitlab4j-api - 4.9.5 + 4.9.6 ``` @@ -70,6 +70,7 @@ gitLabApi.sudo("johndoe") // To turn off sudo mode gitLabApi.unsudo(); ``` + --- ## Connecting Through a Proxy Server 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())) { } } ``` -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: + +As of GitLab4J-API 4.9.2, you can also fetch all the items as a single list using a Pager instance: ```java // Get a Pager instance so we can load all the projects into a single list, 10 items at a time: Pager projectPager = gitlabApi.getProjectsApi().getProjects(10); List allProjects = projectPager.all(); ``` +--- +## Java 8 Stream Support +As of GitLab4J-API 4.9.2, you can also fetch all the items a Java 8+ Stream instance using a Pager instance: + ```java // Get a Pager instance to get a Stream instance. Pager projectPager = gitlabApi.getProjectsApi().getProjects(10); @@ -155,6 +161,7 @@ if (optionalGroup.isPresent()) return gitlabApi.getGroupApi().addGroup("my-group-name", "my-group-path"); ``` + --- ## Issue Time Estimates GitLab issues allow for time tracking. The following time units are currently available: -- GitLab