-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
88 lines (76 loc) · 2.37 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
88 lines (76 loc) · 2.37 KB
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
plugins {
`java-library`
alias(libs.plugins.paperweight.userdev)
alias(libs.plugins.run.paper) // Adds runServer and runMojangMappedServer tasks for testing
// Shades and relocates dependencies into our plugin jar. See https://imperceptiblethoughts.com/shadow/introduction/
alias(libs.plugins.shadow)
}
group = "com.moulberry.axiom"
version = "5.0.4+26.2"
description = "Serverside component for Axiom on Paper"
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(25))
}
repositories {
maven("https://repo.viaversion.com") {
content {
includeGroup("com.viaversion")
}
}
maven("https://maven.enginehub.org/repo/") { // WorldGuard
content {
includeGroup("com.sk89q.worldguard")
includeGroup("com.sk89q.worldedit")
includeGroup("com.sk89q.worldguard.worldguard-libs")
includeGroup("com.sk89q.worldedit.worldedit-libs")
}
}
maven("https://maven.playpro.com") { // CoreProtect
content {
includeGroup("net.coreprotect")
}
}
mavenCentral()
}
dependencies {
paperweight.paperDevBundle("26.2.build.40-alpha")
// Zstd Compression Library
implementation(libs.zstd.jni)
// LuckPerms event integration
compileOnly(libs.luckperms)
// ViaVersion support
compileOnly(libs.viaversion.api)
// WorldGuard support
compileOnly(libs.worldguard.bukkit)
// PlotSquared support
implementation(platform(libs.bom.newest))
compileOnly(libs.plotsquared.core)
compileOnly(libs.plotsquared.bukkit) { isTransitive = false }
// CoreProtect support
compileOnly(libs.coreprotect)
}
tasks {
assemble {
dependsOn(shadowJar)
}
compileJava {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
options.release.set(25)
}
javadoc {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
}
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 "26.2"
)
inputs.properties(props)
filesMatching("plugin.yml") {
expand(props)
}
}
}