You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,6 @@ GitLab API for Java (gitlab4j-api) provides a full featured and easy to consume
5
5
6
6
---
7
7
8
-
## Java 8 Requirement
9
-
As of GitLab4J-API 4.8.0 Java 8+ is now required to use GitLab4J-API.
10
-
11
-
---
12
-
13
8
To utilize the GitLab API for Java in your project, simply add the following dependency to your project's build file:
14
9
15
10
**Gradle: build.gradle**
@@ -41,6 +36,11 @@ Javadocs are available here: <a href="http://www.messners.com/gitlab4j-api/javad
41
36
42
37
---
43
38
39
+
## Java 8 Requirement
40
+
As of GitLab4J-API 4.8.0, Java 8+ is now required to use GitLab4J-API.
41
+
42
+
---
43
+
44
44
## Using GitLab4J
45
45
46
46
GitLab4J-API is quite simple to use, all you need is the URL to your GitLab server and the Private Token from your GitLab Account Settings page. Once you have that info it is as simple as:
@@ -93,15 +93,15 @@ while (projectsPager.hasNext())) {
93
93
}
94
94
}
95
95
```
96
-
96
+
---
97
+
## Java 8 Optional<T> Support
98
+
GitLab4J-API supports Java 8 Optional<T> for API calls that result in the return of a single item. Here are a couple of examples on how to use the Java 8 Optional<T> API calls:
97
99
```java
98
-
// Create a Pager instance that will be used to build a list containing all the commits for project ID 1234
0 commit comments