A Forge mod that implements SpongeAPI
This repository is obsolete! Development on modern (1.16+) versions continues in the Sponge repository.
A Forge implementation of the Sponge API.
The following steps will ensure your project is cloned properly.
git clone --recursive https://github.com/SpongePowered/SpongeForge.gitcd SpongeForgecp scripts/pre-commit .git/hooksNote: SpongeForge 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 SpongeForge, you must first prepare the environment:
./gradlew setupDecompWorkspace --refresh-dependenciesFor Eclipse
./gradlew eclipseSearch for nested projects is enabledFor IntelliJ
Note: The following is aimed to help you setup run configurations for Eclipse and IntelliJ, if you do not want to be able to run SpongeForge directly from your IDE then you can skip this.
For Eclipse
./gradlew eclipse should have generated the run configurations automatically.For IntelliJ
./gradlew genIntelliJRunsNote: You must Setup the environment before you can build SpongeForge.
In order to build SpongeForge 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 but in most cases you'll only need 'spongeforge-x.x.x-x-x.x-x.jar'.
The following steps will update your clone with the official repo.
git pullgit submodule update --recursive./gradlew setupDecompWorkspace --refresh-dependenciesA dependency was added, but my IDE is missing it! How do I add it?
If a new dependency was added, you can just restart your IDE and the Gradle plugin for that IDE should pull in the new dependencies.
Are you a talented programmer looking to contribute some code? We'd love the help!
Help! Things are not working!
Some issues can be resolved by deleting the '.gradle' folder in your user directory and running through the setup steps again, or even running
gradle cleanCacheand running through the setup again. Otherwise if you are having trouble with something that the README does not cover, feel free to join our IRC channel and ask for assistance.
No open issues yet, or sync has not completed.