-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
87 lines (71 loc) · 2.78 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
repositories {
mavenLocal()
maven {
url = uri("https://papermc.io/repo/repository/maven-public/")
}
maven {
url = uri("https://jitpack.io")
}
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
}
}
dependencies {
implementation(project(":EnhancedGlist-Common"))
implementation(project(":EnhancedGlist-BungeeCord-API"))
implementation(project(":EnhancedGlist-Updater"))
implementation(project(":EnhancedGlist-Messenger"))
compileOnly("net.md-5:bungeecord:1.19")
implementation("net.kyori:adventure-api:4.12.0")
implementation("net.kyori:adventure-platform-bungeecord:4.1.2")
implementation("net.kyori:adventure-text-minimessage:4.12.0")
implementation("net.kyori:adventure-text-serializer-legacy:4.12.0")
implementation("com.google.code.gson:gson:2.10")
implementation("com.rabbitmq:amqp-client:5.16.0")
implementation("io.lettuce:lettuce-core:6.2.1.RELEASE")
// Caffeine for Cache
implementation("com.github.ben-manes.caffeine:caffeine:3.1.2")
// Configurate - Sponge
implementation("org.spongepowered:configurate-yaml:4.1.2")
// Third Party Plugin Libraries
compileOnly("net.luckperms:api:5.4")
compileOnly("com.github.LeonMangler:PremiumVanishAPI:2.7.11-2")
}
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
destinationDirectory.set(file("$rootDir/compiled"))
if(archiveClassifier.get() == "all") {
archiveClassifier.set("")
}
// Relocations for Configurate - Sponge
relocate("org.spongepowered.configurate", "dev.wirlie.shaded.org.spongepowered.configurate")
relocate("org.yaml.snakeyaml", "dev.wirlie.shaded.org.yaml.snakeyaml")
relocate("io.leangen.geantyref", "dev.wirlie.shaded.io.leangen.geantyref")
relocate("kotlin", "dev.wirlie.shaded.kotlin")
relocate("com.google.gson", "dev.wirlie.shaded.com.google.gson")
relocate("com.github.benmanes.caffeine", "dev.wirlie.shaded.com.github.benmanes.caffeine")
relocate("net.kyori", "dev.wirlie.shaded.net.kyori")
relocate("com.rabbitmq", "dev.wirlie.shaded.com.rabbitmq")
relocate("io.netty", "dev.wirlie.shaded.io.netty")
relocate("io.lettuce", "dev.wirlie.shaded.io.lettuce")
relocate("okhttp3", "dev.wirlie.shaded.okhttp3")
}
tasks.withType<ProcessResources> {
val props = mutableMapOf(
Pair("version", version)
)
inputs.properties(props)
filteringCharset = "UTF-8"
filesMatching(listOf("bungee.yml")) {
expand(props)
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
sourceCompatibility = "11"
targetCompatibility = "11"
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "11"
}
}