Currently not stable and under heavy development!
Common code for official SpongeAPI implementations. It is licensed under the MIT License.
- Homepage
- Source
- Issues
- Documentation
- Community Chat: [#sponge on irc.esper.net]
- Development Chat: [#spongedev on irc.esper.net]
- Java 8
The following steps will ensure your project is cloned properly.
git clone --recursive https://github.com/SpongePowered/SpongeCommon.git
cd SpongeCommon
cp scripts/pre-commit .git/hooks
Note: SpongeCommon uses Gradle as its build system. The repo includes the Gradle wrapper that will automatically download the correct Gradle
version. Local installations of Gradle may work but are untested. To execute the Gradle wrapper, run the ./gradlew
script on Unix systems or only
gradlew
on Windows systems.
Before you are able to build SpongeCommon, you must first prepare the environment:
- Run
./gradlew setupDecompWorkspace --refresh-dependencies
For Eclipse
- Run
./gradlew eclipse
- Import SpongeCommon as an existing project (File > Import > General)
- Select the root folder for SpongeCommon and make sure
Search for nested projects
is enabled - Check SpongeCommon when it finishes building and click Finish
For IntelliJ
- Make sure you have the Gradle plugin enabled (File > Settings > Plugins).
- Click File > New > Project from Existing Sources > Gradle and select the root folder for SpongeCommon.
- Make sure Use default gradle wrapper is selected. Older/newer Gradle versions may work but we only test using the wrapper.
Note: You must Setup the environment before you can build SpongeCommon.
In order to build SpongeCommon you simply need to run the gradlew
command. On Windows systems you should run gradlew
instead of ./gradlew
to
invoke the Gradle wrapper. You can find the compiled JAR files in ./build/libs
.
The following steps will update your clone with the official repo.
git pull
git submodule update --recursive
./gradlew setupDecompWorkspace --refresh-dependencies
Are you a talented programmer looking to contribute some code? We'd love the help!
- Open a pull request with your changes, following our guidelines.
- Please follow the above guidelines for your pull request(s) to be accepted.