forked from dentych/EnchantGUI
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts~
100 lines (85 loc) · 2.96 KB
/
build.gradle.kts~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
plugins {
id("java-library")
alias(libs.plugins.plugin.yml)
alias(libs.plugins.shadow)
alias(libs.plugins.sonarqube)
}
group = "me.tychsen"
version = "1.7.6"
repositories {
mavenCentral()
maven ("https://repo.aikar.co/content/groups/aikar/")
maven ("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven ("https://nexus.hc.to/content/repositories/pub_releases")
maven ("https://oss.sonatype.org/content/groups/public/")
maven ("https://repo.codemc.org/repository/maven-public")
maven ("https://jitpack.io")
maven ("https://repo.rosewooddev.io/repository/public/")
maven ("https://repo.mattstudios.me/artifactory/public/")
}
dependencies {
compileOnly(libs.spigot.api)
compileOnly(libs.vault.api)
compileOnly(libs.playerpoints.api)
implementation(libs.triumph.gui)
library(libs.adventure.api)
implementation(libs.helper)
implementation(libs.nbt.api)
implementation(libs.acf)
implementation(libs.bstats)
library(libs.boosted.yml)
library(libs.annotations)
}
bukkit {
name = "EnchantGUI"
version = project.version.toString()
main = "me.tychsen.enchantgui.EnchantGUIPlugin"
apiVersion = "1.17"
website = "https://github.com/sarhatabaot/EnchantGUI"
authors = listOf("Dentych", "sarhatabaot")
softDepend = listOf("Vault", "PlayerPoints")
permissions {
register("eshop.use") {
description = "Gives access to /eshop."
default = net.minecrell.pluginyml.bukkit.BukkitPluginDescription.Permission.Default.TRUE
}
register("eshop.admin") {
description = "Gives access to /eshop reload."
}
register("eshop.all") {
description = "Gives access to all enchants and all levels of the enchants."
}
register("eshop.enchanting-table") {
description = "Gives access to the right click on enchanting table feature."
}
}
}
tasks {
build {
dependsOn(shadowJar)
}
shadowJar {
minimize()
archiveFileName.set("EnchantGUI-${project.version}.jar")
archiveClassifier.set("shadow")
relocate ("org.bstats", "me.tychsen.enchantgui.util")
relocate ("co.aikar.commands", "me.tychsen.enchantgui.acf")
relocate ("co.aikar.locales", "me.tychsen.enchantgui.locales")
relocate ("de.tr7zw.changeme.nbtapi", "me.tychsen.enchantgui.nbt")
relocate ("com.github.sarhatabaot.kraken", "me.tychsen.enchantgui.kraken")
relocate ("dev.triumphteam", "me.tychsen.enchantgui.gui")
// relocate("dev.dejvokep.boostedyaml", "me.tychsen.enchantgui.boostedyaml")
}
}
sonarqube {
properties {
property("sonar.projectKey", "sarhatabaot_EnchantGUI")
property("sonar.organization", "sarhatabaot-github")
property("sonar.host.url", "https://sonarcloud.io")
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(16))
}
}