Skip to content

Commit b726269

Browse files
authored
Jakarta upstream (#20)
1 parent 552d8aa commit b726269

File tree

285 files changed

+7390
-4042
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

285 files changed

+7390
-4042
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/ci-build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: GitLab4J CI
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- 'dependabot/**'
7+
pull_request:
8+
types: [opened, synchronize, reopened, ready_for_review]
9+
10+
jobs:
11+
12+
build-jdk11:
13+
name: "Build JDK 11"
14+
runs-on: ubuntu-latest
15+
services:
16+
gitlab-instance:
17+
image: gitlab/gitlab-ce:12.9.2-ce.0
18+
env:
19+
GITLAB_OMNIBUS_CONFIG: gitlab_rails['initial_root_password']="password";gitlab_rails['lfs_enabled']=false;
20+
ports:
21+
- 8090:80
22+
steps:
23+
- uses: actions/checkout@v2
24+
with:
25+
fetch-depth: 0
26+
- name: Set up JDK 11
27+
uses: actions/setup-java@v2
28+
with:
29+
distribution: adopt-hotspot
30+
java-version: 11
31+
- name: Get Date
32+
id: get-date
33+
run: |
34+
echo "::set-output name=date::$(/bin/date -u "+%Y-%m")"
35+
shell: bash
36+
- name: Cache Maven Repository
37+
id: cache-maven
38+
uses: actions/cache@v2
39+
with:
40+
path: ~/.m2/repository
41+
# refresh cache every month to avoid unlimited growth
42+
key: gitlab4jmaven-${{ steps.get-date.outputs.date }}
43+
- name: GitLab4j verify
44+
id: gitlab4j-verify
45+
run: |
46+
./mvnw verify -B -V

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ local.properties
2626
.classpath
2727
.settings/
2828
.loadpath
29+
30+
### Visual Studio Code ###
31+
.vscode
2932

3033
# External tool builders
3134
.externalToolBuilders/
@@ -45,7 +48,7 @@ target/
4548

4649
# Test properties file for gitlab4j
4750
test-gitlab4j.properties
48-
!src/test/resoures/test-gitlab4j.properties
51+
!src/test/resources/test-gitlab4j.properties
4952

5053
# git-changelog plugin #
5154
.okhttpcache

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
# GitLab4J&trade; API (gitlab4j-api)<br />Java Client Library for the GitLab REST API
22

33
[![Maven Central](https://img.shields.io/maven-central/v/org.gitlab4j/gitlab4j-api.svg)](http://mvnrepository.com/artifact/org.gitlab4j/gitlab4j-api)
4-
[![Build Status](https://travis-ci.org/gitlab4j/gitlab4j-api.svg?branch=master)](https://travis-ci.org/gitlab4j/gitlab4j-api)
4+
[![Build Status](https://github.com/gitlab4j/gitlab4j-api/actions/workflows/ci-build.yml/badge.svg?branch=6.x)](https://github.com/gitlab4j/gitlab4j-api/actions/workflows/ci-build.yml)
55
[![javadoc.io](https://javadoc.io/badge2/org.gitlab4j/gitlab4j-api/javadoc.io.svg)](https://javadoc.io/doc/org.gitlab4j/gitlab4j-api)
66

7-
87
GitLab4J&trade; 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.
98

109
---
1110
## Table of Contents
1211
* [(Cortex) Publishing](#cortex-publishing)<br />
1312
* [GitLab Server Version Support](#gitLab-server-version-support)<br/>
1413
* [Using GitLab4J-API](#using-gitlab4j-api)<br/>
15-
* [Java 8 Requirement](#java-8-requirement)<br/>
14+
* [Java 11 Requirement](#java-11-requirement)<br/>
1615
* [Javadocs](#javadocs)<br/>
1716
* [Project Set Up](#project-set-up)<br/>
1817
* [Usage Examples](#usage-examples)<br/>
@@ -49,8 +48,8 @@ As of GitLab 11.0 support for the GitLab API v3 has been removed from the GitLab
4948
---
5049
## Using GitLab4J-API
5150

52-
### **Java 8 Requirement**
53-
As of GitLab4J-API 4.8.0, Java 8+ is now required to use GitLab4J-API.
51+
### **Java 11 Requirement**
52+
As of GitLab4J-API 6.0.0, Java 11+ is now required to use GitLab4J-API.
5453

5554
### **Javadocs**
5655
Javadocs are available here: [![javadoc.io](https://javadoc.io/badge2/org.gitlab4j/gitlab4j-api/javadoc.io.svg)](https://javadoc.io/doc/org.gitlab4j/gitlab4j-api)
@@ -62,7 +61,7 @@ To utilize GitLab4J&trade; API in your Java project, simply add the following de
6261
```java
6362
dependencies {
6463
...
65-
compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.19.0'
64+
compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '6.0.0-rc.1'
6665
}
6766
```
6867

@@ -73,7 +72,7 @@ dependencies {
7372
<dependency>
7473
<groupId>org.gitlab4j</groupId>
7574
<artifactId>gitlab4j-api</artifactId>
76-
<version>4.19.0</version>
75+
<version>6.0.0-rc.1</version>
7776
</dependency>
7877
```
7978

@@ -183,10 +182,10 @@ GitLab4J-API provides an easy to use paging mechanism to page through lists of r
183182
Here are a couple of examples on how to use the Pager:
184183
```java
185184
// Get a Pager instance that will page through the projects with 10 projects per page
186-
Pager<Project> projectPager = gitlabApi.getProjectsApi().getProjects(10);
185+
Pager<Project> projectPager = gitLabApi.getProjectApi().getProjects(10);
187186

188187
// Iterate through the pages and print out the name and description
189-
while (projectsPager.hasNext())) {
188+
while (projectPager.hasNext()) {
190189
for (Project project : projectPager.next()) {
191190
System.out.println(project.getName() + " -: " + project.getDescription());
192191
}

0 commit comments

Comments
 (0)