-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
96 lines (77 loc) · 2.38 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import xyz.jpenilla.resourcefactory.bukkit.BukkitPluginYaml
import xyz.jpenilla.resourcefactory.bukkit.bukkitPluginYaml
import xyz.jpenilla.resourcefactory.paper.PaperPluginYaml
plugins {
kotlin("jvm") version "2.1.0"
id("com.gradleup.shadow") version "8.3.5"
id("xyz.jpenilla.resource-factory-paper-convention") version "1.2.0"
id("io.papermc.paperweight.userdev") version "1.7.3"
}
group = "foundation.esoteric"
version = "1.0-SNAPSHOT"
val targetJavaVersion = 21
kotlin {
jvmToolchain(targetJavaVersion)
}
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/") {
name = "papermc-repo"
}
maven("https://oss.sonatype.org/content/groups/public/") {
name = "sonatype"
}
mavenLocal()
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.21.3-R0.1-SNAPSHOT")
compileOnly("foundation.esoteric:firework-wars-core-plugin:1.0-SNAPSHOT")
paperweight.paperDevBundle("1.21.3-R0.1-SNAPSHOT")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("dev.triumphteam:triumph-gui:3.1.11")
}
tasks {
shadowJar {
minimize {
exclude(dependency("org.jetbrains.kotlin:kotlin-reflect"))
}
relocate("dev.triumphteam.gui", "foundation.esoteric.fireworkwarslobby.gui")
destinationDirectory.set(file("../firework-wars-plugin/run/plugins"))
}
build {
dependsOn(shadowJar)
}
assemble {
dependsOn(reobfJar)
}
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(21)
}
compileKotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
}
}
javadoc {
options.encoding = Charsets.UTF_8.name()
}
processResources {
filteringCharset = Charsets.UTF_8.name()
}
}
paperPluginYaml {
name = "FireworkWarsLobby"
authors = listOf("rolyPolyVole")
website = "https://github.com/EsotericFoundation/firework-wars-lobby-plugin"
main = "foundation.esoteric.fireworkwarslobby.FireworkWarsLobbyPlugin"
apiVersion = "1.21.3"
description = project.description
dependencies {
server("FireworkWarsCore", PaperPluginYaml.Load.BEFORE, required = true, joinClasspath = true)
}
}
bukkitPluginYaml {
load = BukkitPluginYaml.PluginLoadOrder.POSTWORLD
}