Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.nukkitx:nukkit:1.16'
}
dependencies {
implementation("com.github.nukkitx:nukkit:1.16")
}
<dependency>
<groupId>com.github.nukkitx</groupId>
<artifactId>nukkit</artifactId>
<version>1.16</version>
</dependency>
libraryDependencies += "com.github.nukkitx" % "nukkit" % "1.16"
:dependencies [[com.github.nukkitx/nukkit "1.16"]]
Nukkit is nuclear-powered server software for Minecraft Bedrock Edition. It has a few key advantages over other server software:
Nukkit is under improvement yet, we welcome contributions.
git clone https://github.com/CloudburstMC/Nukkit
cd Nukkit
./gradlew shadowJar
The compiled JAR can be found in the target/
directory.
Note: You don't need to compile Nukkit yourself if you don't intend to modify the code.
Simply run java -jar nukkit-1.0-SNAPSHOT.jar
.
Information on Nukkit's API can be found at the wiki.
Running Nukkit in Docker (17.05+ or higher).
Build image from the source,
docker build -t nukkit .
Run once to generate the nukkit-data
volume, default settings, and choose language,
docker run -it -p 19132:19132/udp -v nukkit-data:/data nukkit
Use docker-compose to start server on port 19132
and with nukkit-data
volume,
docker-compose up -d
Validate the chart:
helm lint charts/nukkit
Dry run and print out rendered YAML:
helm install --dry-run --debug nukkit charts/nukkit
Install the chart:
helm install nukkit charts/nukkit
Or, with some different values:
helm install nukkit \
--set image.tag="arm64" \
--set service.type="LoadBalancer" \
charts/nukkit
Or, the same but with a custom values from a file:
helm install nukkit \
-f helm-values.local.yaml \
charts/nukkit
Upgrade the chart:
helm upgrade nukkit charts/nukkit
Testing after deployment:
helm test nukkit
Completely remove the chart:
helm uninstall nukkit