Skip to content

Adding the dependency

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

Module NameDescription
strokk-commands-annotationsThis module holds the annotations for you to add in your source code.
strokk-commands-processorThis 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, we have to add the repository:

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

Next up we add the dependency:

For Gradle, we simply add the annotations module as a compileOnly and the processor module as a annotationProcessor dependency.

dependencies {
compileOnly("net.strokkur:strokk-commands-annotations:1.3.0-SNAPSHOT")
annotationProcessor("net.strokkur:strokk-commands-processor:1.3.0-SNAPSHOT")
}