Install Reedwork for PaperMC Plugins
Reedwork is a Java framework for building PaperMC plugins with automatic component discovery, dependency injection, command generation, event registration, and custom Minecraft registry integration.
This guide explains how to add Reedwork as a dependency to an existing Paper plugin project.
Requirements
Section titled “Requirements”Before installing Reedwork, make sure your project already has:
- a working PaperMC plugin project
- Java support matching your Paper version
- a build system using Maven or Gradle
Reedwork is distributed as a JAR file through GitHub Releases.
Download Reedwork
Section titled “Download Reedwork”The latest Reedwork release is 4.0.0.
Download reedwork-4.0.0.jar or visit the GitHub Releases page.
Recommended installation: Maven local repository
Section titled “Recommended installation: Maven local repository”The recommended installation method is adding Reedwork to your local Maven repository.
This keeps the Reedwork JAR separate from your plugin source code and allows Maven and Gradle to resolve the dependency using standard coordinates.
Install the downloaded JAR:
-
Download the latest Reedwork JAR.
-
Install the file into your local Maven repository:
Replace
<PATH_TO_DOWNLOADED_JAR>with the actual path to the directory containing the downloaded JAR file.Terminal window mvn install:install-file -Dfile="<PATH_TO_DOWNLOADED_JAR>/reedwork-4.0.0.jar" -DgroupId="dev.reedworkmc" -DartifactId="reedwork" -Dversion="4.0.0" -Dpackaging="jar"Maven stores the artifact in your local repository, normally:
~/.m2/repositoryAfter installation, the downloaded JAR is no longer required.
-
Add Reedwork as a dependency.
Add the dependency to
pom.xml:<dependency><groupId>dev.reedworkmc</groupId><artifactId>reedwork</artifactId><version>4.0.0</version></dependency>Ensure
mavenLocal()is available:repositories {mavenLocal()}dependencies {implementation "dev.reedworkmc:reedwork:4.0.0"}mavenLocal()allows Gradle to resolve the Reedwork artifact from the local Maven repository.Ensure
mavenLocal()is available:repositories {mavenLocal()}dependencies {implementation("dev.reedworkmc:reedwork:4.0.0")}mavenLocal()allows Gradle to resolve the Reedwork artifact from the local Maven repository.
Legacy installation: include the JAR in your project
Section titled “Legacy installation: include the JAR in your project”The legacy approach stores the Reedwork JAR directly inside your plugin project.
This method can be useful when the dependency should be bundled with the project structure.
However, the Maven repository installation is preferred for normal development.
-
Download the latest Reedwork JAR.
-
Place the downloaded JAR into your plugin project:
Directorymy-plugin
Directorylibs
- reedwork-4.0.0.jar
Directorysrc
- …
- …
-
Add the dependency configuration:
Add a system dependency:
<dependency><groupId>dev.reedworkmc</groupId><artifactId>reedwork</artifactId><version>4.0.0</version><scope>system</scope><systemPath>${project.basedir}/libs/reedwork-4.0.0.jar</systemPath></dependency>The JAR must be located at
libs/{jarName}relative to the project root.Add the local file dependency:
dependencies {implementation(files("libs/reedwork-4.0.0.jar"))}The JAR must be located at
libs/{jarName}relative to the project root.Add the local file dependency:
dependencies {implementation(files("libs/reedwork-4.0.0.jar"))}The JAR must be located at
libs/{jarName}relative to the project root.
Choosing an installation method
Section titled “Choosing an installation method”For most PaperMC plugin projects, use the local Maven installation.
Advantages:
- standard Maven coordinates
- works with Maven and Gradle
- keeps dependency management clean
- avoids project-local binary files
The legacy libs approach is mainly useful for projects where the Reedwork JAR must remain directly inside the repository.
Verify the installation
Section titled “Verify the installation”After adding Reedwork, your project should be able to import Reedwork classes:
import dev.reedworkmc.reedwork.Reedwork;You can now initialize Reedwork and start using features such as:
Next steps
Section titled “Next steps”Reedwork is now installed in your PaperMC plugin project.
Continue with the Quick Start guide to create your first Reedwork-powered plugin.