Skip to content

Using the library

Jon Huang edited this page Nov 30, 2024 · 2 revisions

Using the library

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.

Maven

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>

Gradle

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"
Clone this wiki locally