-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
72 lines (61 loc) · 1.69 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
plugins {
id("java")
id("com.github.johnrengelman.shadow") version "8.1.1"
id("net.kyori.indra.checkstyle") version "3.1.3"
id("com.github.ben-manes.versions") version "0.51.0"
}
group = "city.thefloating"
version = "0.1.0-SNAPSHOT"
description = "The core, monolithic plugin for The Floating City."
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
repositories {
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://repo.thbn.me/releases/")
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
compileOnly("net.luckperms:api:5.4")
implementation("broccolai.corn:corn-minecraft-paper:3.2.0")
implementation("com.google.inject:guice:7.0.0")
implementation("dev.tehbrian:tehlib-paper:0.5.0")
implementation("cloud.commandframework:cloud-paper:1.8.4")
implementation("org.spongepowered:configurate-hocon:4.1.2")
}
tasks {
assemble {
dependsOn(shadowJar)
}
processResources {
filesMatching("**/plugin.yml") {
expand("version" to project.version, "description" to project.description)
}
}
jar {
archiveBaseName.set("Helios")
}
shadowJar {
archiveClassifier.set("")
val libsPackage = "${project.group}.${project.name}.libs"
fun moveToLibs(vararg patterns: String) {
for (pattern in patterns) {
relocate(pattern, "$libsPackage.$pattern")
}
}
moveToLibs(
"broccolai.corn",
"cloud.commandframework",
"com.typesafe",
"com.google",
"dev.tehbrian.tehlib",
"io.leangen",
"jakarta.inject",
"javax.annotation",
"org.aopalliance",
"org.checkerframework",
"org.spongepowered",
)
}
}