Manual Setup
Before getting started, please ensure you have the following installed:
Java Development Kit (version 13 or later)
Build System
First, add a dependency to your gradle/libs.versions.toml
.
[versions]
kord-extensions = "2.2.1-SNAPSHOT"
[libraries]
kord-extensions = { module = "dev.kordex:kord-extensions", version.ref = "kord-extensions" }
Then, update your build.gradle.kts
.
repositories {
// ...
mavenCentral()
maven {
name = "KordEx (Releases)"
url = uri("https://repo.kordex.dev/releases")
}
maven {
name = "KordEx (Snapshots)"
url = uri("https://repo.kordex.dev/snapshots")
}
maven {
name = "Sonatype Snapshots (Legacy)"
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
}
}
dependencies {
// ...
implementation(libs.kord.extensions)
}
First, add a dependency to your gradle/libs.versions.toml
.
[versions]
kord-extensions = "2.2.1-SNAPSHOT"
[libraries]
kord-extensions = { module = "dev.kordex:kord-extensions", version.ref = "kord-extensions" }
Then, update your build.gradle
.
repositories {
// ...
mavenCentral()
maven {
name "KordEx (Releases)"
url "https://repo.kordex.dev/releases"
}
maven {
name "KordEx (Snapshots)"
url "https://repo.kordex.dev/snapshots"
}
maven {
name "Sonatype Snapshots (Legacy)"
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
dependencies {
// ...
implementation(libs.kord.extensions)
}
Add the following to your pom.xml
. For more information, see the official Maven guide for Kotlin.
<repositories>
<!-- ... -->
<repository>
<id>kordex-snapshots</id>
<name>KordEx (Snapshots)</name>
<url>https://repo.kordex.dev/snapshots</url>
</repository>
<repository>
<id>kordex-releases</id>
<name>KordEx (Releases)</name>
<url>https://repo.kordex.dev/releases</url>
</repository>
<repository>
<id>sonatype-snapshots-legacy</id>
<name>Sonatype Snapshots (Legacy)</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
</repositories>
<dependencies>
<!-- ... -->
<dependency>
<groupId>dev.kordex</groupId>
<artifactId>kord-extensions</artifactId>
<version>2.2.1-SNAPSHOT</version>
</dependency>
</dependencies>
Add the following to your build.sbt
. For more information, see the Kotlin SBT plugin.
resolvers += "KordEx (Releases)" at "https://repo.kordex.dev/releases"
resolvers += "KordEx (Snapshots)" at "https://repo.kordex.dev/snapshots"
resolvers += Resolver.sonatypeOssRepos("snapshots")
libraryDependencies ++= Seq(
"dev.kordex" % "kord-extensions" % "2.2.1-SNAPSHOT"
)
Last modified: 03 September 2024