-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
70 lines (64 loc) · 1.97 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
plugins {
java
alias(libs.plugins.shadow)
}
group = "${project.property("group")}"
version = "${project.property("version")}"
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://repo.unnamed.team/repository/unnamed-public/")
maven("https://jitpack.io/")
maven("https://repo.alessiodp.com/releases/")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
}
dependencies {
implementation(libs.libby)
compileOnly(libs.commandFlow)
compileOnly(libs.paper)
compileOnly(libs.adventureNew)
compileOnly(libs.configurateCore)
compileOnly(libs.configurateYaml)
compileOnly(libs.shibacraft)
compileOnly(libs.papi)
compileOnly(libs.lombok)
annotationProcessor(libs.lombok)
}
tasks {
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
assemble {
dependsOn(shadowJar)
}
build {
dependsOn(shadowJar)
}
withType<JavaCompile> {
options.encoding = "UTF-8"
}
shadowJar {
val libs = "me.davamu.libs"
relocate("me.fixeddev", "$libs.cmdFlow")
relocate("org.spongepowered.configurate", "$libs.configurate")
relocate("net.shibacraft", "$libs.shibacraftLibrary")
archiveFileName.set("${project.name}-${project.version}.jar")
minimize()
}
processResources {
filesMatching("plugin.yml") {
expand(
"name" to rootProject.name,
"version" to project.version,
"group" to project.group,
"author" to project.property("author"),
"description" to project.property("description"),
"minecraftVersion" to project.property("minecraftVersion"),
)
}
}
}