Sponge Build

Hello,
My main goal is to develop plugins for Sponge however I want to build Sponge from source.
I want to build most recent stable version and I have some questions.

What this number means?
When I build Sponge I get 0.

11

How can I build Sponge to get recommended version? (1.12.2-7.1.0-BETA-33 now)

These are the steps I take:

  1. git clone --recursive https://github.com/SpongePowered/SpongeVanilla.git
  2. cd SpongeVanilla
  3. git submodule foreach --recursive git checkout stable-7
  4. git checkout stable-7
  5. ./gradlew setupDecompWorkspace --refresh-dependencies
  6. ./gradlew

What steps Sponge Devs makes to build official release?

What difference is between setup(Decomp, Dev, CI)Workspace? (I would like to note here that only “Decomp” works for me, other options fail)

Im confused why you want a copy of sponge source to build plugins? As there are some classes that sponge generates on initialization that will not be provided in source.

Check the docs out on how i personally do it
https://docs.spongepowered.org/stable/en-GB/plugin/buildsystem.html

the build number really means nothing, its whatever the buildnumber on the CI server is up to

as for building

git clone --recursive https://github.com/SpongePowered/SpongeVanilla.git
cd SpongeVanilla
git checkout stable-7
git submodule update --recursive
./gradlew setupDecompWorkspace --refresh-dependencies
./gradlew build

as for what the different gradle tasks do, refer to https://forgegradle.readthedocs.io/en/latest/reference/tasks/

@MoseMister having a local copy setup is nice for adding your plugins as submodule in your IDE
see Plugin Debugging — Sponge 7.2.0 documentation

1 Like