Skip to content

Compatibility with JDA 4 & 5

Olivia edited this page Mar 12, 2023 · 11 revisions

What is the compatibility with the JDA / JDA-Chewtils versions?

It's quite simple:

JDA 4 JDA 5
Chewtils 1.x
Chewtils 2.x

Because Chewtils 2.0 is still a SNAPSHOT, you must install it from the snapshot repo:

Maven Info
        <repository>
            <id>chew-m2-snapshots</id>
            <url>https://m2.chew.pro/snapshots/</url>
        </repository>
        <dependency>
            <groupId>pw.chew</groupId>
            <artifactId>jda-chewtils</artifactId>
            <version>2.0-SNAPSHOT</version>
            <scope>compile</scope>
            <type>pom</type>
        </dependency>
Gradle Info (Groovy)
repositories {
    // For JDA-Chewtils
    maven { url "https://m2.chew.pro/snapshots" }
}

dependencies {
    implementation 'pw.chew:jda-chewtils:2.0-SNAPSHOT'
}
Gradle Info (Kotlin)
repositories {
    maven { url = uri("https://m2.chew.pro/snapshots") }
}

dependencies {
    implementation("pw.chew:jda-chewtils:2.0-SNAPSHOT")
}

If you already have a 1.x version, simply change /releases to /snapshots in the <url> and 1.x to 2.0-SNAPSHOT. Make sure to update JDA as well! Currently, Chewtils requires at least 5.0.0-beta.2.

Keep in mind, there may be breaking changes! They are documented on the Breaking Changes page