🐘Setup with Gradle

How to use JackFredLib in your projects

Adding the repository

JackFredLib is available on my Maven repository. In your buildscript:

repositories {
	maven {
		name = "JackFredMaven"
		url = uri("https://maven.jackf.red/releases/")
	}
}

Adding modules

It's recommended to bundle JackFredLib in your mod via Gradle's include directive.

JackFredLib can either be included as a whole (excluding Config):

dependencies {
        include(modImplementation("red.jackf.jackfredlib:jackfredlib:<VERSION>")!!)
}

Or, on a per-module basis:

dependencies {
        include(modImplementation("red.jackf.jackfredlib:jackfredlib-base:<VERSION>")!!)
        include(modImplementation("red.jackf.jackfredlib:jackfredlib-colour:<VERSION>")!!)
        include(modImplementation("red.jackf.jackfredlib:jackfredlib-lying:<VERSION>")!!)
}

You can find the latest versions for each modue on the GitHub release feed.

Last updated