Skip to content

Adding the dependency

StrokkCommands is hosted on the eldonexus. It is split into two separate modules:

Module NameDescription
annotations-paperThis module holds the annotations for you to add in your source code.
processor-paperThis module only holds the annotation processor.

This separation is made with a very specific purpose in mind: To include only the most necessary classes in your project classpath. Since the `processor` module only contains internal logic classes (which can have similar names as Brigadier itself), having them included in the classpath would make development experience very annoying.

Therefore, adding the dependency would look like this, depending on your build-system. The versions here are automatically fetched and thus always up to date.

First, add the repository:

repositories {
maven {
id = "eldonexus"
url = "https://eldonexus.de/repository/maven-public/"
}
}

Then add the annotations module as a compileOnly and the processor module as a annotationProcessor dependency.

dependencies {
compileOnly("net.strokkur.commands:annotations-paper:2.0.2")
annotationProcessor("net.strokkur.commands:processor-paper:2.0.2")
}