-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
61 lines (52 loc) · 1.31 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
plugins {
id("java")
id("com.gradleup.shadow") version "8.3.1"
id("net.minecrell.plugin-yml.paper") version "0.6.0"
id("com.diffplug.spotless") version "7.0.0.BETA2"
}
group = "fi.fabianadrian"
version = "2.0.0"
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT")
implementation("org.spongepowered:configurate-yaml:4.1.2") {
exclude("org.yaml")
}
implementation("org.incendo:cloud-paper:2.0.0-beta.10")
implementation("org.incendo:cloud-minecraft-extras:2.0.0-beta.10")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
tasks {
build {
dependsOn(shadowJar)
}
shadowJar {
minimize()
sequenceOf(
"org.incendo.cloud",
"org.spongepowered.configurate",
"io.leangen.geantyref"
).forEach { pkg ->
relocate(pkg, "fi.fabianadrian.fawarp.dependency.$pkg")
}
}
}
paper {
main = "fi.fabianadrian.fawarp.FAWarp"
apiVersion = "1.19.4"
authors = listOf("FabianAdrian")
}
spotless {
java {
endWithNewline()
formatAnnotations()
indentWithTabs()
removeUnusedImports()
trimTrailingWhitespace()
}
}