Importing via dependency managers
Before you can actually start integrating uQueue into you code, you first have to import it into your project.
Importing via Maven
To import the uQueue API via Maven, you should add the repository and dependency to your pom.xml file like below.
Replace {VERSION} with the version of uQueue you want to use.
<repositories>
<repository>
<id>noahvdaa</id>
<url>https://repo.noah.pm/repository/maven-releases/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>me.noahvdaa.uqueue</groupId>
<artifactId>uqueue-api</artifactId>
<version>{VERSION}</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>me.noahvdaa.uqueue</groupId>
<artifactId>uqueue-api</artifactId>
<version>{VERSION}</version>
<type>javadoc</type>
<scope>provided</scope>
</dependency>
</dependencies>
Importing via Gradle
To import the uQueue API via Gradle, add the repository and dependency to your Gradle.build file like in this example below.
Replace {VERSION} with the version of uQueue you want to use.
repositories {
maven {
url = 'https://repo.noah.pm/repository/maven-releases/'
}
}
dependencies {
compileOnly 'me.noahvdaa.uqueue.uqueue-api:{VERSION}'
}
Importing without a dependency manager
If you're not using a dependency manager, you can grab the latest version from Github Releases. After downloading the API, you can add it to your build path.
Next steps
Now that you've added the plugin API to your dependency manager, you can go to the next step: Adding as a plugin dependency.