-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
69 lines (56 loc) · 1.71 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
plugins {
`java-library`
id("io.papermc.paperweight.userdev") version "1.7.1"
id("io.github.goooler.shadow") version "8.1.7"
}
group = "de.leghast"
version = "2.4.5"
description = "Create miniatures of your builds and use block displays with ease (Idea by reyzixDE)"
java {
toolchain.languageVersion = JavaLanguageVersion.of(21)
}
repositories {
maven {
url = uri("https://repo.codemc.io/repository/maven-snapshots/")
}
maven {
url = uri("https://repo.codemc.io/repository/maven-public/")
}
}
dependencies {
paperweight.paperDevBundle("1.20.6-R0.1-SNAPSHOT")
implementation("org.incendo", "cloud-paper", "2.0.0-beta.8")
implementation("net.wesjd:anvilgui:1.9.5-SNAPSHOT")
}
tasks {
compileJava {
options.release = 21
}
javadoc {
options.encoding = Charsets.UTF_8.name()
}
reobfJar {
outputJar = layout.buildDirectory.file("/home/julius/Paper Development/plugins/Miniaturise-${project.version}.jar")
}
processResources {
filteringCharset = Charsets.UTF_8.name() // We want UTF-8 for everything
val props = mapOf(
"name" to project.name,
"version" to project.version,
"description" to project.description,
"apiVersion" to "1.20"
)
inputs.properties(props)
filesMatching("plugin.yml") {
expand(props)
}
}
shadowJar {
configurations = listOf(project.configurations.runtimeClasspath.get())
mergeServiceFiles()
fun reloc(pkg: String) = relocate(pkg, "de.leghast.dependency.$pkg")
reloc("org.incendo.cloud")
reloc("io.leangen.geantyref")
reloc("net.wesjd.anvilgui")
}
}