Gradle Setup - TehBrian/RestrictionHelper GitHub Wiki

1. add the library to your project

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

Replace [latest version] with the library's latest release.

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

dependencies {
  implementation("dev.tehbrian.restrictionhelper:restrictionhelper-spigot:[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("dev.tehbrian.restrictionhelper", "[your plugin package].libs.restrictionhelper")
}