SpongePowered/SpongeAPI


A Minecraft plugin API http://www.spongepowered.org/

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.spongepowered:spongeapi:7.4.0'
	}
	dependencies {
		implementation("com.github.spongepowered:spongeapi:7.4.0")
	}
	<dependency>
	    <groupId>com.github.spongepowered</groupId>
	    <artifactId>spongeapi</artifactId>
	    <version>7.4.0</version>
	</dependency>

                            
    libraryDependencies += "com.github.spongepowered" % "spongeapi" % "7.4.0"
        
        

                            
    :dependencies [[com.github.spongepowered/spongeapi "7.4.0"]]
        
        

Readme


SpongeAPI Build Status

A mature Minecraft plugin API (not including an implementation), licensed under the MIT License.

Prerequisites

Clone

The following steps will ensure your project is cloned properly.
1. git clone https://github.com/SpongePowered/SpongeAPI.git
2. cd SpongeAPI
3. cp scripts/pre-commit .git/hooks

Building

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.

In order to build SpongeAPI you simply need to run the gradle command. You can find the compiled JAR file in ./build/libs labeled similarly to 'spongeapi-x.x.x-SNAPSHOT.jar'.

Sponge will use a javac version of at least 21. If an older JDK is used to launch Gradle, JDK 21 will be downloaded automatically.

Contributing

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 and requirements for your pull request(s) to be accepted.