-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle.kts
93 lines (76 loc) · 2.86 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
plugins {
java
id("com.gradleup.shadow") version ("8.3.2")
id("xyz.jpenilla.run-paper") version ("2.3.1")
}
group = "me.xginko.betterworldstats"
version = "1.11.0"
description = "Show stats about server age, map size and unique player joins on your minecraft server."
repositories {
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/") {
name = "papermc"
}
maven("https://ci.pluginwiki.us/plugin/repository/everything/") {
name = "configmaster-repo"
}
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/") {
name = "placeholderapi"
}
maven("https://mvn-repo.arim.space/lesser-gpl3/") {
name = "arim-mvn-lgpl3"
}
}
dependencies {
compileOnly("com.destroystokyo.paper:paper-api:1.12.2-R0.1-SNAPSHOT")
compileOnly("me.clip:placeholderapi:2.11.5")
compileOnly("org.jetbrains:annotations:24.1.0")
implementation("net.kyori:adventure-api:4.17.0")
implementation("net.kyori:adventure-text-minimessage:4.17.0")
implementation("net.kyori:adventure-text-serializer-ansi:4.17.0")
implementation("net.kyori:adventure-text-serializer-legacy:4.17.0")
implementation("net.kyori:adventure-text-logger-slf4j:4.17.0")
implementation("net.kyori:adventure-platform-bukkit:4.3.4")
implementation("org.bstats:bstats-bukkit:3.0.2")
implementation("space.arim.morepaperlib:morepaperlib:0.4.3")
implementation("com.github.ben-manes.caffeine:caffeine:2.9.3") // 2.X for Java 8 targets
implementation("com.github.thatsmusic99:ConfigurationMaster-API:v2.0.0-rc.1")
}
runPaper.folia.registerTask();
java.toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
tasks {
runServer {
minecraftVersion("1.20.6")
}
compileJava {
options.encoding = Charsets.UTF_8.name()
}
javadoc {
options.encoding = Charsets.UTF_8.name()
}
build.configure {
dependsOn("shadowJar")
}
shadowJar {
archiveFileName.set("BetterWorldStats-${version}.jar")
relocate("net.kyori", "me.xginko.betterworldstats.libs.kyori")
relocate("org.bstats", "me.xginko.betterworldstats.libs.bstats")
relocate("space.arim.morepaperlib", "me.xginko.betterworldstats.libs.morepaperlib")
relocate("com.github.benmanes.caffeine", "me.xginko.betterworldstats.libs.caffeine")
relocate("io.github.thatsmusic99.configurationmaster", "me.xginko.betterworldstats.libs.configmaster")
}
processResources {
filesMatching("plugin.yml") {
expand(
mapOf(
"name" to project.name,
"version" to project.version,
"description" to project.description!!.replace('"'.toString(), "\\\""),
"url" to "https://github.com/xGinko/BetterWorldStats"
)
)
}
}
}