-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
119 lines (109 loc) · 3.91 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
plugins {
java
alias(libs.plugins.shadow)
alias(libs.plugins.plugin.yml.bukkit)
}
group = "com.github.sarhatabaot.farmassistreboot"
version = "1.4.7"
dependencies {
compileOnly(libs.spigot.api)
compileOnly(libs.papi.api)
implementation(libs.nbt.api)
implementation(libs.bstats)
implementation(libs.acf.paper)
implementation(libs.more.paper)
implementation(libs.annotations)
implementation(libs.xseries)
implementation(libs.boosted.yml)
}
bukkit {
main = "com.github.sarhatabaot.farmassistreboot.FarmAssistReboot"
name = "FarmAssistReboot"
authors = listOf("Friendly Baron","sarhatabaot")
website = "https://github.com/sarhatabaot/FarmAssistReboot"
description = "Allow players to auto-replant crops."
apiVersion = "1.13"
softDepend = listOf("PlaceholderAPI")
foliaSupported = true
permissions {
register("farmassist.crops") {
default = BukkitPluginDescription.Permission.Default.TRUE
children = listOf(
"farmassist.wheat",
"farmassist.sugar_cane",
"farmassist.nether_wart",
"farmassist.cocoa",
"farmassist.carrots",
"farmassist.potatoes",
"farmassist.beetroots",
"farmassist.cactus",
)
}
register("farmassist.wheat") {
default = BukkitPluginDescription.Permission.Default.FALSE
}
register("farmassist.sugar_cane") {
default = BukkitPluginDescription.Permission.Default.FALSE
}
register("farmassist.nether_wart") {
default = BukkitPluginDescription.Permission.Default.FALSE
}
register("farmassist.cocoa") {
default = BukkitPluginDescription.Permission.Default.FALSE
}
register("farmassist.carrots") {
default = BukkitPluginDescription.Permission.Default.FALSE
}
register("farmassist.potatoes") {
default = BukkitPluginDescription.Permission.Default.FALSE
}
register("farmassist.beetroots") {
default = BukkitPluginDescription.Permission.Default.FALSE
}
register("farmassist.cactus") {
default = BukkitPluginDescription.Permission.Default.FALSE
}
register("farmassist.reload") {
default = BukkitPluginDescription.Permission.Default.OP
}
register("farmassist.toggle") {
default = BukkitPluginDescription.Permission.Default.OP
}
register("farmassist.global") {
default = BukkitPluginDescription.Permission.Default.OP
}
register("farmassist.update") {
default = BukkitPluginDescription.Permission.Default.OP
}
register("farmassist.notify.update") {
default = BukkitPluginDescription.Permission.Default.OP
}
register("farmassist.lang") {
default = BukkitPluginDescription.Permission.Default.OP
}
register("farmassist.noseeds") {
default = BukkitPluginDescription.Permission.Default.FALSE
}
}
}
tasks {
build {
dependsOn(shadowJar)
}
shadowJar {
minimize()
archiveClassifier.set("")
relocate("org.bstats", "com.github.sarhatabaot.farmassistreboot.metrics")
relocate("co.aikar.commands", "com.github.sarhatabaot.farmassistreboot.acf")
relocate("co.aikar.locales", "com.github.sarhatabaot.farmassistreboot.locales")
relocate("de.tr7zw.changeme.nbtapi", "com.github.sarhatabaot.farmassistreboot.nbt")
relocate("com.cryptomorin.xseries", "com.github.sarhatabaot.farmassistreboot.xseries")
relocate("dev.dejvokep.boostedyaml", "com.github.sarhatabaot.farmassistreboot.boostedyaml")
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}