Skip to content

Gradle Setup

TehBrian edited this page Feb 11, 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 '6.1.0'
}

shadowJar {
    relocate 'xyz.tehbrian.restrictionhelper', '[your plugin package].restrictionhelper'
}

Clone this wiki locally