9 Dependencies
TheMode edited this page 2020-09-27 21:52:00 +02:00

Adding Minestom to your java project is really simple, the only thing you need is to add the JitPack repository

repositories {
    ...
    maven { url 'http://repo.spongepowered.org/maven' }
    maven { url 'https://libraries.minecraft.net' }
    maven { url 'https://jitpack.io' }
    ...
}

And add the wanted Minestom version to your dependencies (https://jitpack.io/#Minestom/Minestom). I'd suggest against using "-SNAPSHOT" as the version since it seems that this does not automatically update

dependencies {
    compile 'com.github.Minestom:Minestom:COMMIT_NUMBER'
}

Warning: Minestom needs Java 11 or newer in order to run