Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.killbill:killbill-client-java:killbill-client-java-1.2.6'
}
dependencies {
implementation("com.github.killbill:killbill-client-java:killbill-client-java-1.2.6")
}
<dependency>
<groupId>com.github.killbill</groupId>
<artifactId>killbill-client-java</artifactId>
<version>killbill-client-java-1.2.6</version>
</dependency>
libraryDependencies += "com.github.killbill" % "killbill-client-java" % "killbill-client-java-1.2.6"
:dependencies [[com.github.killbill/killbill-client-java "killbill-client-java-1.2.6"]]
Java client library for Kill Bill.
| Client version | Kill Bill version | | -------------: | ----------------: | | 0.23.y | 0.16.z | | 0.40.y | 0.18.z | | 0.41.y | 0.19.z | | 1.0.y | 0.20.z | | 1.1.y | 0.22.z | | 1.2.y | 0.22.z | | 1.3.y | 0.24.z |
We've upgraded numerous dependencies in 1.2.x (required for Java 11 support).
Add the library to your application:
<dependency>
<groupId>org.kill-bill.billing</groupId>
<artifactId>killbill-client-java</artifactId>
<version>... release version ...</version>
</dependency>
The easiest way to get started is to look at our Java client tutorial. We also provide a sample Java client application. You can clone this project in order to get started.
When sending a body, if you are unsure which parameters to pass, take a look at the Java api documentation.
To build the library:
mvn clean install -DskipTests=true
This will produce several jars, including:
Kill Bill is the leading Open-Source Subscription Billing & Payments Platform. For more information about the project, go to https://killbill.io/.