-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathbuild.gradle.kts
105 lines (94 loc) · 3.3 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
import io.papermc.paperweight.userdev.ReobfArtifactConfiguration
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
plugins {
kotlin("jvm") version "2.1.0"
kotlin("plugin.serialization") version "2.0.0"
id("io.papermc.paperweight.userdev") version "1.7.7"
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
}
group = "com.arckenver"
version = "3.1-SNAPSHOT"
paperweight.reobfArtifactConfiguration = ReobfArtifactConfiguration.MOJANG_PRODUCTION
repositories {
mavenCentral()
maven {
url = uri("https://jitpack.io")
}
}
dependencies {
compileOnly(kotlin("stdlib"))
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3")
implementation("com.cronutils:cron-utils:9.2.0")
paperweight.paperDevBundle("1.21.3-R0.1-SNAPSHOT")
compileOnly("com.github.MilkBowl:VaultAPI:1.7")
compileOnly("com.github.ElgarL:groupmanager:3.2")
compileOnly("xyz.jpenilla:squaremap-api:1.3.3")
implementation("net.kyori:adventure-platform-bukkit:4.3.4")
implementation("net.kyori:adventure-text-serializer-legacy:4.17.0")
implementation("net.kyori:adventure-text-serializer-gson:4.17.0")
testImplementation(kotlin("test"))
testImplementation("se.lovef:kotlin-assert-utils:0.10.1")
}
bukkit {
main = "com.arckenver.nations.bukkit.NationsPlugin"
apiVersion = "1.21"
authors = listOf("Arckenver")
website = "https://github.com/Arckenver/Nations"
depend = listOf("Vault")
commands {
register("nation") {
description = ""
aliases = listOf("n")
permission = "nations.command.nation"
usage = ""
}
register("zone") {
description = ""
aliases = listOf("z")
permission = "nations.command.zone"
usage = ""
}
register("nationadmin") {
description = ""
aliases = listOf("na")
permission = "nations.command.nationadmin"
usage = ""
}
}
permissions {
register("nations.command.nation") {
description = "Allows using all nation commands"
default = BukkitPluginDescription.Permission.Default.TRUE
}
register("nations.command.zone") {
description = "Allows using all zone commands"
default = BukkitPluginDescription.Permission.Default.TRUE
}
register("nations.command.nationadmin") {
description = "Allows using all nationadmin commands"
default = BukkitPluginDescription.Permission.Default.OP
}
register("nations.admin.bypass.build") {
description = "Allows bypassing build protection on all territories"
default = BukkitPluginDescription.Permission.Default.OP
}
register("nations.admin.bypass.interact") {
description = "Allows bypassing interaction protection on all territories"
default = BukkitPluginDescription.Permission.Default.OP
}
}
}
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
tasks.named<Jar>("jar") {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(configurations.runtimeClasspath.get().map {
if (it.isDirectory) it else zipTree(it)
})
}
tasks.named<Test>("test") {
useJUnitPlatform()
}