generated from CKATEPTb-minecraft/TableclothPluginBlank
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
161 lines (151 loc) · 5.83 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
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
156
157
158
159
160
161
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id("java")
id("maven-publish")
id("com.github.johnrengelman.shadow").version("7.1.0")
id("io.github.gradle-nexus.publish-plugin").version("1.1.0")
// https://github.com/PaperMC/paperweight
// id("io.papermc.paperweight.userdev").version("1.5.11")
}
group = "dev.ckateptb.minecraft"
version = "1.26.6-SNAPSHOT"
val rootPackage = "${project.group}.${project.name.toLowerCase().split('-')[0]}"
val internal = "${rootPackage}.internal"
repositories {
mavenCentral()
// maven("https://repo.jyraf.com/repository/maven-snapshots/")
maven("https://repo.glowing.ink/snapshots")
maven("https://repo.codemc.io/repository/maven-snapshots/")
maven("https://repo.codemc.io/repository/maven-releases/")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
maven("https://repo.minebench.de/")
maven("https://jitpack.io")
maven("https://repo.codemc.io/repository/nms/")
}
dependencies {
// paperweight.paperDevBundle("1.20.4-R0.1-SNAPSHOT")
compileOnly("com.destroystokyo.paper:paper:1.16.5-R0.1-SNAPSHOT")
// Non-blocking threads
implementation("io.projectreactor:reactor-core:3.6.1")
// High performance cache
implementation("com.github.ben-manes.caffeine:caffeine:3.1.8") {
exclude(module = "checker-qual")
exclude(module = "error_prone_annotations")
}
// Configuration
implementation("org.spongepowered:configurate-gson:4.1.2")
implementation("org.spongepowered:configurate-hocon:4.1.2")
implementation("org.spongepowered:configurate-yaml:4.1.2") {
exclude(module = "snakeyaml")
}
// Commands
implementation("cloud.commandframework:cloud-paper:1.8.4")
implementation("cloud.commandframework:cloud-minecraft-extras:1.8.4")
implementation("cloud.commandframework:cloud-annotations:1.8.4")
// Commons
implementation("org.apache.commons:commons-math3:3.6.1")
implementation("org.apache.commons:commons-lang3:3.14.0")
implementation("commons-io:commons-io:2.15.1")
// Database
implementation("com.zaxxer:HikariCP:5.1.0") {
exclude(module = "slf4j-api")
}
implementation("com.j256.ormlite:ormlite-jdbc:6.0")
implementation("org.apache.commons:commons-pool2:2.12.0")
implementation("org.mongodb:mongodb-driver-reactivestreams:4.11.1")
// Text Components
implementation("ink.glowing:inkymessage:0.12.0-SNAPSHOT")
implementation("de.themoep:minedown-adventure:1.7.1-SNAPSHOT")
// Reflection
implementation("org.jooq:joor:0.9.15")
// Additional date-time
implementation("org.threeten:threeten-extra:1.7.2")
// Anvil IUI
implementation("net.wesjd:anvilgui:1.9.2-SNAPSHOT")
// PathFinder
implementation("com.github.patheloper.pathetic:pathetic-mapping:2.4")
// PersistentDataContainerSerializer
implementation("com.jeff-media:persistent-data-serializer:1.0")
// OpenGL Math
implementation("org.joml:joml:1.10.5")
// PlaceholderAPI
compileOnly("me.clip:placeholderapi:2.11.5")
// Packets
compileOnly("com.github.retrooper.packetevents:spigot:2.2.1")
compileOnly("org.projectlombok:lombok:+")
annotationProcessor("org.projectlombok:lombok:+")
}
tasks {
shadowJar {
archiveClassifier.set("")
relocate("org.apache.commons", "${internal}.commons")
relocate("com.github.benmanes.caffeine.cache", "${internal}.cache")
relocate("com.j256.ormlite", "${internal}.ormlite")
relocate("com.zaxxer.hikari", "${internal}.hikari")
relocate("ink.glowing.text", "${internal}.ink")
relocate("org.spongepowered.configurate", "${internal}.configurate")
relocate("cloud.commandframework", "${internal}.commands")
relocate("io.leangen.geantyref", "${internal}.geantyref")
relocate("com.fasterxml.jackson.core", "${internal}.jackson")
// relocate("com.google.gson", "${internal}.gson")
relocate("com.typesafe.config", "${internal}.typesafe")
relocate("org.joor", "${internal}.reflection")
relocate("org.threeten.extra", "${internal}.time")
relocate("net.wesjd.anvilgui", "${internal}.anvil")
relocate("com.mongodb", "${internal}.mongo")
relocate("org.bson", "${internal}.bson")
relocate("org.json", "${internal}.json")
relocate("org.joml", "${internal}.joml")
relocate("de.themoep.minedown.adventure", "${internal}.minedown")
relocate("org.patheloper", "${internal}.pathetic")
relocate("com.jeff_media.persistentdataserializer", "${internal}.persistentdataserializer")
}
build {
dependsOn(/*reobfJar,*/ shadowJar)
}
publish {
dependsOn(/*reobfJar,*/ shadowJar)
}
withType<JavaCompile> {
options.encoding = Charsets.UTF_8.name()
options.release.set(16)
}
named<Copy>("processResources") {
filesMatching("plugin.yml") {
expand(
"projectVersion" to project.version,
"projectName" to project.name,
"projectMainClass" to "${rootPackage}.${project.name.split('-')[0]}"
)
}
from("LICENSE") {
rename { "${project.name.toUpperCase()}_${it}" }
}
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(16))
}
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
artifact(tasks.getByName("shadowJar").outputs.files.singleFile)
}
}
}
nexusPublishing {
repositories {
create("jyrafRepo") {
nexusUrl.set(uri("https://repo.jyraf.com/"))
snapshotRepositoryUrl.set(uri("https://repo.jyraf.com/repository/maven-snapshots/"))
username.set(System.getenv("NEXUS_USERNAME"))
password.set(System.getenv("NEXUS_PASSWORD"))
}
}
}