Skip to content

API: Build Tools

Mark Hughes edited this page Aug 30, 2017 · 1 revision

You can use JitPack to easily use the releases here on GitHub! JitPack requires no installation, just add it as a repoistory!

We have instructions for:

Gradle

Gradle is recommended for it's easy-to-use syntax!

Add the jitpack.io repository:

allprojects {
	repositories {
		// .. along with your other repositories 
		maven { url "https://jitpack.io" }
	}
}

Now depend on LegacyFactions:

dependencies {
	// ... use compileOnly like you would with spigot-api! 
	compileOnly group: "org.spigotmc", name: "spigot-api", version: "1.11-R0.1-SNAPSHOT";	
	compileOnly group: "com.github.redstone", name:"LegacyFactions", version: "v1.4.3" 
}

Maven

Maven is another popular build tool that uses XML.

Add the jitpack.io repository:

<repositories>
	<!-- along with your other repositories -->
	<repository>
		<id>jitpack.io</id>
		<url>https://jitpack.io</url>
	</repository>
</repositories>

Now depend on LegacyFactions:

<dependency>
	<groupId>com.github.redstone</groupId>
	<artifactId>LegacyFactions</artifactId>
	<version>v1.4.3</version>
</dependency>
You can’t perform that action at this time.