Skip to content

Gradle Setup

Brian edited this page Sep 22, 2021 · 8 revisions

1. get the dependency in your project

RestrictionHelper is published on Maven Central.

Maven Central

Replace [latest version] with the version found above.

repositories {
    mavenCentral()
}

dependencies {
    compile("xyz.tehbrian:restrictionhelper:[latest version]")
}

2. shade and relocate the dependency

Replace [your plugin package] with your plugin's package.

plugins {
    id("com.github.johnrengelman.shadow") version "7.0.0"
}

tasks.shadowJar {
    relocate("xyz.tehbrian.restrictionhelper", "[your plugin package].restrictionhelper")
}

Clone this wiki locally