-
Notifications
You must be signed in to change notification settings - Fork 110
Setup
Because JDA-Utilities is dependent on the JDA library itself, projects making use of it must also setup and provide JDA in their project.
The "Using A Dependency Manager" tab below provides a basic setup that includes both JDA and JDA-Utilities.
If you are still unsure how to setup JDA, visit the setup page of the JDA wiki here.
The necessary snippets for adding JDA-Utilities as a dependency in a Gradle or Maven project can be found below.
Replace LATEST
with the corresponding JDA and JDA-Utilities version numbers, and you'll be good
to go after refreshing your dependencies.
If you use gradle as a dependency manager you'll need to do the following:
-
Add this to your
repositories
block.repositories { jcenter() }
-
Add these to your
dependencies
block:dependencies { compile 'com.jagrosh:JDA-Utilities:LATEST' compile 'net.dv8tion:JDA:LATEST' }
If you use maven as a dependency manager you'll need to do the following:
-
Add this to your
<repositories>
block:<repository> <id>central</id> <name>bintray</name> <url>http://jcenter.bintray.com</url> </repository>
-
Add these to your
<dependencies>
block:<dependency> <groupId>com.jagrosh</groupId> <artifactId>JDA-Utilities</artifactId> <version>1.4</version> <scope>compile</scope> </dependency>
<dependency> <groupId>net.dv8tion</groupId> <artifactId>JDA</artifactId> <version>LATEST</version> </dependency>
If you do not use a dependency manager, you'll need to download the latest versions of the following: