Dependencies
INFO
Minestom needs Java 21 or newer in order to run. If you are using Gradle, you must use version 8.5 or higher.
Adding Minestom to your Java project is done just like a normal library.
Repositories
groovy
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
Dependencies
groovy
dependencies {
implementation 'net.minestom:minestom-snapshots:<--version-->'
}
When using Maven it is recommended to exclude the artifact shrinkwrap-resolver-depchain
from the group org.jboss.shrinkwrap.resolver
as otherwise resolving the dependencies will fail. Shrinkwrap can be added as a separate dependency if needed without issues to restore its functionality.
A list of versions can be found at https://jitpack.io/#Minestom/Minestom.