-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
55 lines (45 loc) · 1.61 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
55 lines (45 loc) · 1.61 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("java")
id("com.gradleup.shadow") version "9.3.1"
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
repositories {
maven("https://nexus.sirblobman.xyz/public/")
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
dependencies {
// XSeries
implementation("com.github.cryptomorin:XSeries:13.6.0")
// Adventure
implementation("net.kyori:adventure-platform-bukkit:4.4.1")
implementation("net.kyori:adventure-platform-bungeecord:4.4.1")
implementation("net.kyori:adventure-text-minimessage:4.26.1")
implementation("net.kyori:adventure-text-serializer-plain:4.26.1")
// bStats
implementation("org.bstats:bstats-bukkit:3.2.1")
implementation("org.bstats:bstats-bungeecord:3.2.1")
// Folia Helper
implementation("com.github.sirblobman.api:folia-helper:1.0.2-SNAPSHOT")
}
tasks {
named<Jar>("jar") {
enabled = false
}
named<ShadowJar>("shadowJar") {
archiveClassifier.set(null as String?)
val shadePrefix = "com.github.sirblobman.api.shaded"
relocate("com.cryptomorin.xseries", "$shadePrefix.xseries")
relocate("net.kyori.adventure", "$shadePrefix.adventure")
relocate("net.kyori.examination", "$shadePrefix.examination")
relocate("net.kyori.option", "$shadePrefix.option")
relocate("org.bstats", "$shadePrefix.bstats")
}
named("build") {
dependsOn("shadowJar")
}
}