-
Notifications
You must be signed in to change notification settings - Fork 27
/
build.gradle.kts
129 lines (112 loc) · 4.65 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
plugins {
id("java")
id("maven-publish")
id("io.github.goooler.shadow") version "8.1.7"
}
repositories {
mavenLocal()
maven("https://repo.codemc.io/repository/maven-public/")
maven("https://repo.codemc.io/repository/maven-snapshots/")
maven("https://ci.ender.zone/plugin/repository/everything/")
maven("https://repo.aikar.co/content/groups/aikar/")
maven("https://repo.dmulloy2.net/repository/releases/")
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://jcenter.bintray.com")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://jitpack.io")
maven("https://nexus.wesjd.net/repository/thirdparty/")
maven("https://oss.sonatype.org/content/repositories/snapshots/")
maven("https://maven.enginehub.org/repo/")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
maven("https://repo.mikeprimm.com/")
maven("https://repo.maven.apache.org/maven2/")
maven("https://repo.codemc.io/repository/maven-releases/")
maven {
url = uri("https://repo.papermc.io/repository/maven-public/")
}
mavenCentral()
}
dependencies {
// Paper
compileOnly("io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT")
// Adventure
compileOnly("net.kyori:adventure-api:4.17.0")
implementation("net.kyori:adventure-platform-bukkit:4.3.2")
compileOnly("net.kyori:adventure-text-minimessage:4.17.0")
// Other
implementation("co.aikar:taskchain-bukkit:3.7.2")
implementation("net.wesjd:anvilgui:1.9.4-SNAPSHOT")
implementation("co.aikar:fastutil-base:3.0-SNAPSHOT")
implementation("co.aikar:fastutil-longbase:3.0-SNAPSHOT")
implementation("co.aikar:fastutil-longhashmap:3.0-SNAPSHOT")
implementation("co.aikar:acf-paper:0.5.1-SNAPSHOT")
implementation("io.papermc:paperlib:1.0.7")
implementation("co.aikar:idb-core:1.0.0-SNAPSHOT")
implementation("com.zaxxer:HikariCP:5.1.0")
implementation("com.github.retrooper.packetevents:spigot:2.3.0")
implementation("org.bstats:bstats-bukkit:3.0.2")
compileOnly("com.github.N0RSKA:DeluxeSellwandsAPI:32c")
compileOnly("com.ghostchu:quickshop-api:5.2.0.8")
compileOnly("com.google.guava:guava:33.2.0-jre")
compileOnly("net.milkbowl.vault:VaultAPI:1.7")
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.9")
compileOnly("com.github.TechFortress:GriefPrevention:16.18.1")
compileOnly("me.clip:placeholderapi:2.11.5")
compileOnly("us.dynmap:dynmap-api:3.4-SNAPSHOT")
compileOnly("net.luckperms:api:5.4")
compileOnly("com.google.auto.service:auto-service:1.1.1")
annotationProcessor("com.google.auto.service:auto-service:1.1.1")
// Cache2k
val cache2kVersion = "1.2.2.Final"
implementation("org.cache2k:cache2k-api:${cache2kVersion}")
runtimeOnly("org.cache2k:cache2k-core:${cache2kVersion}")
}
tasks {
shadowJar {
archiveFileName.set("${rootProject.name}-${version}.jar")
// for some reason cache2k does not like being relocated, likely due to generative class loading & relocation not playing nice
relocate("co.aikar.locales", "net.crashcraft.crashclaim.aikarlocales")
relocate("co.aikar.commands", "net.crashcraft.crashclaim.acf")
relocate("co.aikar.idb", "net.crashcraft.crashclaim.idb")
relocate("co.aikar.taskchain", "net.crashcraft.crashclaim.taskchain")
relocate("io.papermc.lib", "net.crashcraft.crashclaim.paperlib")
relocate("org.bstats", "net.crashcraft.crashclaim.bstats")
relocate("it.unimi.dsi", "net.crashcraft.crashclaim.fastutil")
relocate("com.zaxxer.hikari", "net.crashcraft.crashclaim.hikari")
relocate("com.github.retrooper.packetevents", "net.crashcraft.crashclaim.packetevents.api")
relocate("io.github.retrooper.packetevents", "net.crashcraft.crashclaim.packetevents.impl")
relocate("net.wesjd", "net.crashcraft.crashclaim.anvilgui")
exclude("/com/google/gson/**")
exclude("/org/intellij/**")
exclude("/org/jetbrains/**")
exclude("/org/slf4j/**")
}
build {
dependsOn(shadowJar)
dependsOn(publishToMavenLocal)
}
assemble {
dependsOn(shadowJar)
dependsOn(publishToMavenLocal)
}
compileJava {
dependsOn(clean)
}
processResources {
expand(project.properties)
}
}
group = "net.crashcraft"
version = findProperty("version")!!
description = "CrashClaim"
java.sourceCompatibility = JavaVersion.VERSION_21
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}