# Download / Installation

The recommended way to get Javacord is to use a build manager, like Gradle or Maven.
If you are not familiar with build managers, you can follow one of the beginner ide setup guides (see navigation) or download Javacord directly from GitHub.

# 📦 Javacord Dependency

IMPORTANT

Replace $latest-version with the latest version.
You can see the latest version in the image below (but remove the v prefix!).

Latest version

# Gradle

repositories { mavenCentral() }
dependencies { implementation 'org.javacord:javacord:$latest-version' }

# Maven

<dependency>
    <groupId>org.javacord</groupId>
    <artifactId>javacord</artifactId>
    <version>$latest-version</version>
    <type>pom</type>
</dependency>

# Sbt

libraryDependencies ++= Seq("org.javacord" % "javacord" % "$latest-version")
Click to view snapshot repositories

Snapshots are automatically deployed from the development branch.

# Gradle

repositories { 
  maven {
    url "https://oss.sonatype.org/content/repositories/snapshots/"
  }
}
dependencies { 
  implementation 'org.javacord:javacord:$latest-snapshot-version' 
}

# Maven

<repository>
    <id>snapshots-repo</id>
    <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
<dependency>
    <groupId>org.javacord</groupId>
    <artifactId>javacord</artifactId>
    <version>$latest-snapshot-version</version>
    <type>pom</type>
</dependency>

# Sbt

resolvers += "snapshots-repo" at "https://oss.sonatype.org/content/repositories/snapshots/"
libraryDependencies ++= Seq("org.javacord" % "javacord" % "$latest-snapshot-version")

# 📝 Optional Logger Dependency

In addition to Javacord, it is also recommended to install a Log4j-2-compatible logging framework. A logging framework can be used to provide a more sophisticated logging experience with being able to configure log format, log targets (console, file, database, Discord direct message, ...), log levels per class, and much more.

For example, Log4j Core:

# Gradle

dependencies { runtimeOnly 'org.apache.logging.log4j:log4j-core:2.11.0' }

# Maven

<dependency>
    <groupId>org.apache.logging.log4j</groupId>
    <artifactId>log4j-core</artifactId>
    <version>2.11.0</version>
</dependency>

# Sbt

libraryDependencies ++= Seq("org.apache.logging.log4j" % "log4j-core" % "2.11.0")

Take a look at the logger configuration wiki article for further information.