Skip to content

Gradle Setup

TehBrian edited this page Aug 23, 2022 · 8 revisions

1. add the library to your project

RestrictionHelper is published on https://repo.thbn.me.

Replace [latest version] with the plugin's latest release

repositories {
  maven("https://repo.thbn.me/releases/")
}

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.1.2"
}

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

Clone this wiki locally