Skip to main content

Using Jitpack

Installation#

Jitpack is an easy to use package repository that builds directly from GitHub repository contents, allowing faster development cycles. We only recommend using Jitpack if you want to keep up with the latest incubating features for Discord4J or wish to test a particular fix.

If you're looking to install versions from Jitpack, be aware of groupId changes:

StableJitpack
com.discord4jcom.discord4j.discord4j

Using dependency managers#

repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.discord4j.discord4j:discord4j-core:master-SNAPSHOT'
}

Using a Specific Version#

Instead of master-SNAPSHOT you can also use a direct commit hash to pin your dependency, even under development builds. The commit hash can be obtained from the list of GitHub commits: