@@ -68,11 +68,97 @@ dependencies {
6868</dependency >
6969```
7070
71+ ** Jbang:**
72+
73+ [ Jbang] ( https://www.jbang.dev/ ) is very convinient to run scripts writen in Java having dependencies on third party libraries.
74+
75+ Just add this line at the top of your script:
76+
77+ ``` java
78+ // DEPS org.gitlab4j:gitlab4j-api:6.0.0-rc.2
79+ ```
80+
7181** Ivy and SBT** <br />
7282There have been reports of problems resolving some dependencies when using Ivy or SBT, for help resolving those issues see:<br />
7383<a href =" https://github.com/eclipse-ee4j/jaxrs-api/issues/571 " >JAX-RS API Issue #571 </a ><br />
7484<a href =" https://github.com/eclipse-ee4j/jaxrs-api/issues/572 " >JAX-RS API Issue #572 </a >
7585
86+ ### ** Lastest version**
87+
88+ While we are frequently creating releases, you might be interested by a feature that has not been published yet.
89+ You can use jars created by [ jitpack] ( https://jitpack.io/ ) to get the newest version.
90+
91+ ** Usage with gradle:**
92+
93+ ``` gradle
94+ repositories {
95+ mavenCentral()
96+ maven {
97+ url "https://jitpack.io"
98+ content {
99+ includeGroup "com.github.gitlab4j"
100+ }
101+ }
102+ }
103+
104+ dependencies {
105+ // ...
106+ implementation 'com.github.gitlab4j:gitlab4j-api:6.x-SNAPSHOT'
107+ // ...
108+ }
109+ ```
110+
111+ ** Usage with maven:**
112+
113+ ``` xml
114+ <repositories >
115+ <repository >
116+ <id >jitpack.io</id >
117+ <url >https://jitpack.io</url >
118+ </repository >
119+ </repositories >
120+
121+ <dependencies >
122+ <dependency >
123+ <groupId >com.github.gitlab4j</groupId >
124+ <artifactId >gitlab4j-api</artifactId >
125+ <version >6.x-SNAPSHOT</version >
126+ </dependency >
127+ <!-- ... -->
128+ </dependencies >
129+ ```
130+
131+ ** Usage with jbang:**
132+
133+ You just need to declare the dependency like this, instead of using the maven coordinates:
134+
135+ ``` java
136+ // DEPS https://github.com/gitlab4j/gitlab4j-api/tree/6.x#:SNAPSHOT
137+ ```
138+
139+ ** Using a specific commit**
140+
141+ Version ` 6.x-SNAPSHOT ` indicates that you would like to get the latest of the ` main ` branch.
142+ You can also point to a specific commit:
143+
144+ ``` gradle
145+ dependencies {
146+ implementation 'com.github.gitlab4j:gitlab4j-api:b6148593a3'
147+ }
148+ ```
149+
150+ ``` xml
151+ <dependency >
152+ <groupId >com.github.gitlab4j</groupId >
153+ <artifactId >gitlab4j-api</artifactId >
154+ <version >b6148593a3</version >
155+ </dependency >
156+ ```
157+
158+ ``` java
159+ // DEPS https://github.com/gitlab4j/gitlab4j-api/tree/b6148593a3405cc60968bd247cd7910aae9375e2
160+ ```
161+
76162---
77163
78164### ** Usage Examples**
0 commit comments