Skip to content

Gradle Setup

TehBrian edited this page Mar 15, 2023 · 8 revisions

1. add the library to your project

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

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

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

dependencies {
  implementation("dev.tehbrian.restrictionhelper:restrictionhelper-spigot:[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")
}

Clone this wiki locally