-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
59 lines (49 loc) · 1.62 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("java")
id("com.github.johnrengelman.shadow") version "8.1.1"
id("xyz.jpenilla.run-paper") version "2.3.1"
}
group = "com.armamc"
version = "1.2.1"
repositories {
mavenCentral()
maven("https://jitpack.io")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}
dependencies {
implementation("com.github.TechnicJelle:UpdateCheckerJava:v2.5")
compileOnly(dependencyNotation = "org.spigotmc:spigot-api:1.21.3-R0.1-SNAPSHOT")
compileOnly(dependencyNotation = "net.kyori:adventure-api:4.17.0")
compileOnly(dependencyNotation = "net.kyori:adventure-platform-bukkit:4.3.4")
compileOnly(dependencyNotation = "net.kyori:adventure-text-minimessage:4.17.0")
compileOnly(dependencyNotation = "net.kyori:adventure-text-serializer-legacy:4.17.0")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
tasks {
withType<ShadowJar> {
archiveClassifier.set("")
}
withType<ProcessResources> {
filesMatching("plugin.yml") {
expand("version" to project.version)
}
}
withType<JavaCompile> {
options.encoding = "UTF-8"
options.compilerArgs.add("-parameters")
}
build {
dependsOn(shadowJar)
}
runServer {
minecraftVersion("1.20.4")
jvmArguments.add("-Dcom.mojang.eula.agree=true")
jvmArguments.add("-Dnet.kyori.ansi.colorLevel=truecolor")
jvmArguments.add("-Dfile.encoding=UTF8")
systemProperty("terminal.jline", false)
systemProperty("terminal.ansi", true)
}
}