Internal Sponge Classes

You can add SpongeCommon, SpongeVanilla or SpongeForge as a dependency to your plugin project if you need to access internal Sponge classes.

Warning

You should only add a specific implementation dependency when really necessary. If possible, use SpongeAPI or request feature additions on the SpongeAPI issue tracker.

In addition to the normal artefacts, the implementation modules provide a dev artefact which can be easily used in the IDE, since it is not re-obfuscated. All implementation modules have the API module already included, so you do not need an extra dependency on SpongeAPI.

SpongeCommon

  • Group ID: org.spongepowered
  • Artefact ID: spongecommon
  • Version: Same as SpongeAPI + current recommended version (see Versioning for details)
  • Classifier: dev

Example Using Gradle

dependencies {
    compile 'org.spongepowered:spongecommon:7.1.0:dev'
}

SpongeVanilla

Choose a build from the downloads page and copy the full version string to your dependency definition.

  • Group ID: org.spongepowered
  • Artefact ID: spongevanilla
  • Version: Use a build version from the downloads page
  • Classifier: dev

Example Using Gradle

dependencies {
    compile 'org.spongepowered:spongevanilla:1.12.2-7.1.1-RC123:dev'
}

SpongeForge

Choose a build from the downloads page and copy the full version string to your dependency definition.

  • Group ID: org.spongepowered
  • Artefact ID: spongeforge
  • Version: Use a build version from the downloads page
  • Classifier: dev

Example Using Gradle

dependencies {
    compile 'org.spongepowered:spongeforge:1.12.2-2768-7.1.1-RC3484:dev'
}