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: If you do not have Gradle installed then use ./gradlew
for Unix systems or Git Bash and gradlew.bat
for Windows systems in place of any gradle
command.
Before you are able to build SpongeCommon, you must first prepare the environment:
- Run
gradle setupDecompWorkspace --refresh-dependencies
Note: You may substitute setupDecompWorkspace
for setupCIWorkspace
when building on a CI such as Jenkins.
For Eclipse
- Run
gradle 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.
Note: If you do not have Gradle installed then use ./gradlew for Unix systems or Git Bash and gradlew.bat for Windows systems in place of any 'gradle' command.
Note: You must Setup the environment before you can build SpongeCommon.
In order to build SpongeCommon you simply need to run the gradle
command. You can find the compiled JAR files in ./build/libs
.
The following steps will update your clone with the official repo.
git remote add upstream [email protected]:SpongePowered/SpongeCommon.git
git pull --rebase upstream master
git submodule update --recursive
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.