Skip to content
GitLab
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
Apr 23, 2018
by
Greg Messner
Browse files
Updated for release 4.8.14
parent
d98ba0af
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
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
...
...
pom.xml
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>
...
...
src/main/java/org/gitlab4j/api/models/PushRule.java
→
src/main/java/org/gitlab4j/api/models/PushRule
s
.java
View file @
54a36706
File moved
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