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.nucleuspowered:nucleus:3.0.0-BETA7'
}
dependencies {
implementation("com.github.nucleuspowered:nucleus:3.0.0-BETA7")
}
<dependency>
<groupId>com.github.nucleuspowered</groupId>
<artifactId>nucleus</artifactId>
<version>3.0.0-BETA7</version>
</dependency>
libraryDependencies += "com.github.nucleuspowered" % "nucleus" % "3.0.0-BETA7"
:dependencies [[com.github.nucleuspowered/nucleus "3.0.0-BETA7"]]
This project is no longer active. You are welcome to fork under the terms of the MIT licence under a different name.
For version 1, the legacy version for Sponge API 7.1 (Minecraft 1.12), see the tag "S7.1-v1-FINAL".
For version 2, the current version for Sponge API 7.3 (Minecraft 1.12), see the branch "v2/S7".
Licence: MIT (except for the Nucleus logo, which is all rights reserved, and any third party shaded code)
Nucleus is a Sponge plugin that forms a solid base for your server, providing essential commands, events, and other tidbits that you might need. Extremely configurable, only loading up the commands and modules you want (and providing a way for plugins to disable modules that they replace the functionality of), and providing a simple and rich API, Nucleus is an elite plugin for providing simple server tasks, and an essential addition to your server!
Are you a talented programmer wanting to contribute some code? Perhaps someone who likes to write documentation? Do you have a bug that you want to report? Or perhaps you have an idea for a cool new idea that would fit in with Nucleus? We'd be grateful for your contributions - we're an open community that appreciates any help you are willing to give!
Nucleus currently uses Gradle 7.3.3 and is compiled using JDK 17 (but to a Java 8 target).
To get a copy of the Nucleus source, ensure you have Git installed, and run the following commands from a command prompt or terminal:
git clone git@github.com:NucleusPowered/Nucleus.git
cd Nucleus
cp scripts/pre-commit .git/hooks
To build Nucleus, navigate to the source directory and run either:
./gradlew build
on UNIX and UNIX like systems (including macOS and Linux)gradlew build
on Windows systemsYou will find the compiled JAR which will be named like Nucleus-[version]-plugin.jar
in output/
. A corresponding API and
javadocs jar will also exist.
Nucleus is available via a Maven repository.
https://repo.drnaylor.co.uk/artifactory/list/minecraft
io.github.nucleuspowered
nucleus-api
The versioning follows version[-SNAPSHOT|-ALPHAn|-BETAn|-RCn]
, where n
is an integer. Add the -SNAPSHOT
section for the latest snapshot.
You can also get Nucleus as a whole this way, but internals may break at any time. The API is guaranteed to be more stable.
You can also use JitPack as a repository, if you prefer.
The compiled Nucleus plugin includes the following libraries (with their licences in parentheses):
See THIRDPARTY.md for more details.