Minestom wiki
Search…
Dependencies
Describes how to add Minestom as a dependency in your project.
Minestom needs Java 17 or newer in order to run. If you are using Gradle, you mus use version 7.2 or higher.
Adding Minestom to your Java project is really simple, you only need to add a few repositories:

Repositories

Gradle (Groovy)
Gradle (Kotlin)
Maven
1
repositories {
2
// ...
3
mavenCentral()
4
maven { url 'https://repo.spongepowered.org/maven' }
5
maven { url 'https://jitpack.io' }
6
}
Copied!
1
repositories {
2
// ...
3
mavenCentral()
4
maven(url = "https://repo.spongepowered.org/maven")
5
maven(url = "https://jitpack.io")
6
}
Copied!
1
<repositories>
2
<!-- ... -->
3
<repository>
4
<id>spongepowered</id>
5
<url>https://repo.spongepowered.org/maven</url>
6
</repository>
7
<repository>
8
<id>jitpack</id>
9
<url>https://jitpack.io</url>
10
</repository>
11
</repositories>
Copied!

Dependencies

Gradle (Groovy)
Gradle (Kotlin)
Maven
1
dependencies {
2
// ...
3
implementation 'com.github.Minestom:Minestom:VERSION'
4
}
Copied!
1
dependencies {
2
//...
3
implementation("com.github.Minestom:Minestom:-SNAPSHOT")
4
}
Copied!
1
<dependencies>
2
<!-- ... -->
3
<dependency>
4
<groupId>com.github.Minestom</groupId>
5
<artifactId>Minestom</artifactId>
6
<version>VERSION</version>
7
<exclusions>
8
<exclusion>
9
<groupId>org.jboss.shrinkwrap.resolver</groupId>
10
<artifactId>shrinkwrap-resolver-depchain</artifactId>
11
</exclusion>
12
</exclusions>
13
</dependency>
14
</dependencies>
Copied!
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.
Last modified 29d ago
Copy link