Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
54a36706
Commit
54a36706
authored
7 years ago
by
Greg Messner
Browse files
Options
Download
Email Patches
Plain Diff
Updated for release 4.8.14
parent
d98ba0af
main
5.0.x
5.0.x.jdk17
6.x
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+8
-4
README.md
pom.xml
+1
-1
pom.xml
src/main/java/org/gitlab4j/api/models/PushRules.java
+0
-0
src/main/java/org/gitlab4j/api/models/PushRules.java
with
9 additions
and
5 deletions
+9
-5
README.md
+
8
-
4
View file @
54a36706
...
...
@@ -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.8
.
1
2
'
compile
group:
'
org
.
gitlab4j
'
,
name:
'
gitlab4j
-
api
'
,
version:
'
4.8
.
1
4
'
}
```
...
...
@@ -20,7 +20,7 @@ dependencies {
<dependency>
<groupId>
org.gitlab4j
</groupId>
<artifactId>
gitlab4j-api
</artifactId>
<version>
4.8.1
2
</version>
<version>
4.8.1
4
</version>
</dependency>
```
...
...
@@ -296,8 +296,12 @@ List<Runner> runners = gitLabApi.getRunnersApi().getAllRunners();
#### ServicesApi
```
java
// Activates the gitlab-ci service.
gitLabApi
.
getServicesApi
().
setGitLabCI
(
"project-name"
,
"auth-token"
,
"project-ci-url"
);
// Activate/Update the Slack Notifications service
SlackService
slackService
=
new
SlackService
()
.
withMergeRequestsEvents
(
true
)
.
withWebhook
(
"https://hooks.slack.com/services/ABCDEFGHI/KJLMNOPQR/wetrewq7897HKLH8998wfjjj"
)
.
withUsername
(
"GitLab4J"
);
gitLabApi
.
getServicesApi
().
updateSlackService
(
"project-path"
,
slackService
);
```
#### SessionApi
...
...
This diff is collapsed.
Click to expand it.
pom.xml
+
1
-
1
View file @
54a36706
...
...
@@ -5,7 +5,7 @@
<groupId>
org.gitlab4j
</groupId>
<artifactId>
gitlab4j-api
</artifactId>
<packaging>
jar
</packaging>
<version>
4.8.1
3
-SNAPSHOT
</version>
<version>
4.8.1
4
-SNAPSHOT
</version>
<name>
GitLab API Java Client
</name>
<description>
GitLab API for Java (gitlab4j-api) provides a full featured Java API for working with GitLab repositories via the GitLab REST API.
</description>
<url>
https://github.com/gmessner/gitlab4j-api
</url>
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/gitlab4j/api/models/PushRule.java
→
src/main/java/org/gitlab4j/api/models/PushRule
s
.java
+
0
-
0
View file @
54a36706
File moved
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets