Skip to content

Commit 54a3670

Browse files
committed
Updated for release 4.8.14
1 parent d98ba0a commit 54a3670

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ To utilize the GitLab API for Java in your project, simply add the following dep
1111
```java
1212
dependencies {
1313
...
14-
compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.8.12'
14+
compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.8.14'
1515
}
1616
```
1717

@@ -20,7 +20,7 @@ dependencies {
2020
<dependency>
2121
<groupId>org.gitlab4j</groupId>
2222
<artifactId>gitlab4j-api</artifactId>
23-
<version>4.8.12</version>
23+
<version>4.8.14</version>
2424
</dependency>
2525
```
2626

@@ -296,8 +296,12 @@ List<Runner> runners = gitLabApi.getRunnersApi().getAllRunners();
296296

297297
#### ServicesApi
298298
```java
299-
// Activates the gitlab-ci service.
300-
gitLabApi.getServicesApi().setGitLabCI("project-name", "auth-token", "project-ci-url");
299+
// Activate/Update the Slack Notifications service
300+
SlackService slackService = new SlackService()
301+
.withMergeRequestsEvents(true)
302+
.withWebhook("https://hooks.slack.com/services/ABCDEFGHI/KJLMNOPQR/wetrewq7897HKLH8998wfjjj")
303+
.withUsername("GitLab4J");
304+
gitLabApi.getServicesApi().updateSlackService("project-path", slackService);
301305
```
302306

303307
#### SessionApi

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<groupId>org.gitlab4j</groupId>
66
<artifactId>gitlab4j-api</artifactId>
77
<packaging>jar</packaging>
8-
<version>4.8.13-SNAPSHOT</version>
8+
<version>4.8.14-SNAPSHOT</version>
99
<name>GitLab API Java Client</name>
1010
<description>GitLab API for Java (gitlab4j-api) provides a full featured Java API for working with GitLab repositories via the GitLab REST API.</description>
1111
<url>https://github.com/gmessner/gitlab4j-api</url>

0 commit comments

Comments
 (0)