forked from Ecwid/consul-api
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Using the library
Jon Huang edited this page Nov 30, 2024
·
2 revisions
To utilize the library, you will need to add GitHub packages as a repository source if you are using Maven or Gradle. You also have the option of downloading the JAR directly.
Add the following section to the repositories
section of your pom.xml
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/jon5477/consul-api</url>
</repository>
Then add the dependency:
<dependency>
<groupId>io.github.jon5477</groupId>
<artifactId>consul-api</artifactId>
<version>2.0.0-SNAPSHOT</version>
</dependency>
Add the following to your build.gradle
file
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/jon5477/consul-api")
}
}
Then add the depedency:
compile "io.github.jon5477:consul-api:2.0.0-SNAPSHOT"