forked from Incendo/Hyperverse
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
155 lines (140 loc) · 6.39 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
155 lines (140 loc) · 6.39 KB
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
import com.github.jengelman.gradle.plugins.shadow.ShadowPlugin
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
plugins {
id("hyperverse.base-conventions")
id("hyperverse.publishing-conventions")
alias(libs.plugins.shadow)
alias(libs.plugins.run.paper)
alias(libs.plugins.pluginyml)
}
apply {
plugin<ShadowPlugin>()
}
dependencies {
api(projects.hyperverseNmsCommon)
compileOnlyApi(libs.paper)
compileOnly(libs.multiverse)
compileOnly(libs.myworlds)
compileOnly(libs.essentialsx)
compileOnly(libs.placeholderapi)
// TODO: Remove, because yuck.
implementation("co.aikar:acf-paper:0.5.1-SNAPSHOT")
implementation(libs.taskchain)
implementation(libs.paperlib)
implementation(libs.guice) {
exclude("com.google.guava", "guava")
}
implementation(libs.assistedInject) {
exclude("com.google.guava", "guava")
}
implementation(libs.bstats)
implementation(libs.configurateHocon)
implementation(libs.cloudPaper)
implementation(libs.cloudMinecraftExtras)
implementation(libs.cloudMinecraftExtras)
// TODO: Remove and use native versions.
implementation("net.kyori:adventure-platform-bukkit:4.3.2")
implementation("net.kyori:adventure-text-minimessage:4.14.0")
implementation(projects.hyperverseNmsUnsupported)
runtimeOnly(projects.hyperverseNms1206)
runtimeOnly(projects.hyperverseNms121)
runtimeOnly(projects.hyperverseNms1213)
runtimeOnly(projects.hyperverseNms1214)
runtimeOnly(projects.hyperverseNms1215)
runtimeOnly(projects.hyperverseNms1216)
runtimeOnly(projects.hyperverseNms1217)
}
bukkit {
name = "Hyperverse"
website = "https://github.com/incendo/Hyperverse"
authors = listOf("Citymonstret", "andrewandy")
main = "org.incendo.hyperverse.Hyperverse"
softDepend = listOf("Essentials", "Multiverse", "MyWorlds")
apiVersion = "1.14"
permissions {
mapOf(
"worlds" to "Allows players to use the Hyperverse command",
"reload" to "Allows players to reload the configuration and messages used by Hyperverse",
"create" to "Allows players to create new worlds",
"list" to "Allows players to list worlds",
"teleport" to "Allows players to teleport between worlds",
"teleport.other" to "Allows players to teleport other players between worlds",
"teleportgroup" to "Allows players to teleport to their last location in a given profile group",
"info" to "Allows players to view world info",
"unload" to "Allows players to unload worlds",
"load" to "Allows players to load worlds",
"import" to "Allows players to import worlds",
"find" to "Allows players to find the current world of another player",
"flag.list" to "Allows player to list available flags",
"flag.set" to "Allows players to set world flags",
"flag.info" to "Allows players to view information regarding a flag in a given world",
"gamerule.set" to "Allows players to world set gamerules",
"delete" to "Allows players to delete worlds",
"debugpaste" to "Allows players to create debug pastes",
"who" to "Allows players to list players",
"plugin.import" to "Allows players to import configurations from external plugins",
"regenerate" to "Allows players to regenerate worlds"
).forEach { (permission, description) ->
register("hyperverse.$permission") {
this.description = description
this.default = BukkitPluginDescription.Permission.Default.OP
}
}
register("hyperverse.override.gamemode") {
description = "Allows players to override world gamemode"
default = BukkitPluginDescription.Permission.Default.FALSE
}
}
}
tasks {
processResources {
filesMatching("plugin.yml") {
expand("version" to project.version)
}
}
shadowJar {
minimize {
exclude(project(":hyperverse-nms-unsupported"))
exclude(project(":hyperverse-nms-1-20-6"))
exclude(project(":hyperverse-nms-1-21"))
exclude(project(":hyperverse-nms-1-21-3"))
exclude(project(":hyperverse-nms-1-21-4"))
exclude(project(":hyperverse-nms-1-21-5"))
exclude(project(":hyperverse-nms-1-21-6"))
exclude(project(":hyperverse-nms-1-21-7"))
}
mergeServiceFiles()
dependencies {
exclude {
it.moduleGroup == "com.google.guava"
}
}
relocate("io.papermc.lib", "org.incendo.hyperverse.libs.paperlib")
relocate("org.bstats", "org.incendo.hyperverse.libs.bstats")
relocate("co.aikar.commands", "org.incendo.hyperverse.libs.aikar.commands")
relocate("co.aikar.locales", "org.incendo.hyperverse.libs.aikar.locales")
relocate("co.aikar.taskchain", "org.incendo.hyperverse.libs.taskchain")
relocate("co.aikar.util", "org.incendo.hyperverse.libs.aikar.util")
relocate("net.jodah.expiringmap", "org.incendo.hyperverse.libs.expiringmap")
relocate("net.kyori", "org.incendo.hyperverse.libs.kyori")
relocate("cloud.commandframework", "org.incendo.hyperverse.libs.cloud")
relocate("org.spongepowered.configurate", "org.incendo.hyperverse.libs.configurate")
relocate("io.leangen.geantyref", "org.incendo.hyperverse.libs.geantyref")
relocate("org.checkerframework", "org.incendo.hyperverse.libs.checkerframework")
relocate("com.typesafe.config", "org.incendo.hyperverse.libs.hocon")
relocate("com.google.inject", "org.incendo.hyperverse.libs.guice")
relocate("javax.inject", "org.incendo.hyperverse.libs.javax.inject")
relocate("org.aopalliance", "org.incendo.hyperverse.libs.aop")
relocate("javax.annotation", "org.incendo.hyperverse.libs.javax.annotation")
relocate("org.intellij.lang.annotations", "org.incendo.hyperverse.libs.intellij.annotations")
relocate("org.jetbrains.annotations", "org.incendo.hyperverse.libs.jetbrains.annotations")
relocate("com.google.errorprone", "org.incendo.hyperverse.libs.errorprone")
}
build {
dependsOn(shadowJar)
}
runServer {
java.toolchain.languageVersion.set(JavaLanguageVersion.of(21))
minecraftVersion("1.21.7")
}
}