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
+8-37
Original file line number
Diff line number
Diff line change
@@ -7,69 +7,40 @@
7
7
GitLab4J™ API (gitlab4j-api) provides a full featured and easy to consume Java library for working with GitLab repositories via the GitLab REST API. Additionally, full support for working with GitLab webhooks and system hooks is also provided.
8
8
9
9
---
10
-
## Table of Contents
11
-
*[GitLab Server Version Support](#gitLab-server-version-support)<br/>
*[Issue Time Estimates](#issue-time-estimates)<br/>
27
-
*[Making API Calls](#making-api-calls)<br/>
28
-
*[Available Sub APIs](#available-sub-apis)
29
-
30
-
---
31
-
32
-
> **Warning**
33
-
> If you are looking for our next major version `6.x.x` which is requiring **Java 11** as mimimal version and which is using Jakarta EE components using the `jakarta.*` packages instead of `javax.*` check the [`6.x` branch](https://github.com/gitlab4j/gitlab4j-api/tree/6.x).
34
-
> The `6.x.x` version is the one you need if you are using Spring Boot 3 and Spring Framework 6.0, .
35
-
36
10
## GitLab Server Version Support
37
11
38
-
GitLab4J-API supports version 11.0+ of GitLab Community Edition [(gitlab-ce)](https://gitlab.com/gitlab-org/gitlab-ce/) and GitLab Enterprise Edition [(gitlab-ee)](https://gitlab.com/gitlab-org/gitlab-ee/).
39
-
40
-
GitLab released GitLab Version 11.0 in June of 2018 which included many major changes to GitLab. If you are using GitLab server earlier than version 11.0, it is highly recommended that you either update your GitLab install or use a version of this library that was released around the same time as the version of GitLab you are using.
12
+
GitLab4J-API supports both GitLab Community Edition [(gitlab-ce)](https://gitlab.com/gitlab-org/gitlab-ce/) and GitLab Enterprise Edition [(gitlab-ee)](https://gitlab.com/gitlab-org/gitlab-ee/).
41
13
42
14
**NOTICE**:
43
15
As of GitLab 11.0 support for the GitLab API v3 has been removed from the GitLab server (see https://about.gitlab.com/2018/06/01/api-v3-removal-impending/). Support for GitLab API v3 will be removed from this library sometime in 2019. If you are utilizing the v3 support, please update your code to use GitLab API v4.
44
16
45
17
---
46
18
## Using GitLab4J-API
47
19
48
-
### **Java 8 Requirement**
49
-
As of GitLab4J-API 4.8.0, Java 8+ is now required to use GitLab4J-API.
20
+
### **Java 11 Requirement**
21
+
As of GitLab4J-API 6.0.0, Java 11+ is now required to use GitLab4J-API.
50
22
51
23
### **Javadocs**
52
24
Javadocs are available here: [](https://javadoc.io/doc/org.gitlab4j/gitlab4j-api)
53
25
54
26
55
27
### **Project Set Up**
56
28
To utilize GitLab4J™ API in your Java project, simply add the following dependency to your project's build file:<br />
**NOTE:** Pulling dependencies may fail when using Gradle prior to 4.5. See [Gradle issue 3065](https://github.com/gradle/gradle/issues/3065#issuecomment-364092456)
* <p>Add or update the build status of a commit. The following fluent methods are available on the
676
-
* CommitStatus instance for setting up the status:</p>
677
-
* <pre><code>
678
-
* withCoverage(Float)
679
-
* withDescription(String)
680
-
* withName(String)
681
-
* withRef(String)
682
-
* withTargetUrl(String)
683
-
* </code></pre>
684
-
*
685
-
* <pre><code>GitLab Endpoint: POST /projects/:id/statuses/:sha</code></pre>
686
-
*
687
-
* @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance (required)
688
-
* @param sha a commit SHA (required)
689
-
* @param state the state of the status. Can be one of the following: PENDING, RUNNING, SUCCESS, FAILED, CANCELED (required)
690
-
* @param pipelineId The ID of the pipeline to set status. Use in case of several pipeline on same SHA (optional)
691
-
* @param status the CommitSatus instance hoilding the optional parms: ref, name, target_url, description, and coverage
692
-
* @return a CommitStatus instance with the updated info
693
-
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
694
-
* @deprecated use {@link #addCommitStatus(Object, String, org.gitlab4j.api.Constants.CommitBuildState, CommitStatus)} and set the pipelineId value in the {@link CommitStatus} parameter
"The parameter 'pipelineId' and the pipelineId value the 'status' parameter are different. Set the two values to be the same or one of the two values to null.");
0 commit comments