diff --git a/README.md b/README.md index 8379237dd1cae752bbbb4b026baa63f4ca33a8bc..eb14909107339765dbe938f7909746563cb5494a 100644 --- a/README.md +++ b/README.md @@ -68,11 +68,97 @@ dependencies { ``` +**Jbang:** + + [Jbang](https://www.jbang.dev/) is very convinient to run scripts writen in Java having dependencies on third party libraries. + + Just add this line at the top of your script: + +```java +//DEPS org.gitlab4j:gitlab4j-api:6.0.0-rc.2 +``` + **Ivy and SBT**
There have been reports of problems resolving some dependencies when using Ivy or SBT, for help resolving those issues see:
JAX-RS API Issue #571
JAX-RS API Issue #572 +### **Lastest version** + +While we are frequently creating releases, you might be interested by a feature that has not been published yet. +You can use jars created by [jitpack](https://jitpack.io/) to get the newest version. + +**Usage with gradle:** + +```gradle +repositories { + mavenCentral() + maven { + url "https://jitpack.io" + content { + includeGroup "com.github.gitlab4j" + } + } +} + +dependencies { + // ... + implementation 'com.github.gitlab4j:gitlab4j-api:6.x-SNAPSHOT' + // ... +} +``` + +**Usage with maven:** + +```xml + + + jitpack.io + https://jitpack.io + + + + + + com.github.gitlab4j + gitlab4j-api + 6.x-SNAPSHOT + + + +``` + +**Usage with jbang:** + +You just need to declare the dependency like this, instead of using the maven coordinates: + +```java +//DEPS https://github.com/gitlab4j/gitlab4j-api/tree/6.x#:SNAPSHOT +``` + +**Using a specific commit** + +Version `6.x-SNAPSHOT` indicates that you would like to get the latest of the `main` branch. +You can also point to a specific commit: + +```gradle +dependencies { + implementation 'com.github.gitlab4j:gitlab4j-api:b6148593a3' +} +``` + +```xml + + com.github.gitlab4j + gitlab4j-api + b6148593a3 + +``` + +```java +//DEPS https://github.com/gitlab4j/gitlab4j-api/tree/b6148593a3405cc60968bd247cd7910aae9375e2 +``` + --- ### **Usage Examples**