-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
74 lines (68 loc) · 1.81 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
plugins {
`java-library`
alias(libs.plugins.shadow)
alias(libs.plugins.paperweight.userdev)
alias(libs.plugins.runpaper)
}
group = "com.danikvitek"
version = "2.2"
repositories {
mavenCentral()
maven {
name = "papermc-repo"
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
name = "sonatype"
url = uri("https://oss.sonatype.org/content/groups/public/")
}
maven {
name = "jitpack"
url = uri("https://jitpack.io")
}
maven {
name = "codemc-repo"
url = uri("https://repo.codemc.org/repository/maven-public/")
}
}
dependencies {
paperweight.paperDevBundle("1.18.2-R0.1-SNAPSHOT")
compileOnly(libs.jetbrains.annotations)
implementation(libs.bstats.bukkit)
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
tasks {
assemble {
dependsOn(reobfJar)
}
shadowJar {
relocate("org.bstats", "com.danikvitek.bstats")
}
build {
dependsOn(shadowJar)
}
runServer {
dependsOn(shadowJar)
}
compileJava {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
// Set the release flag. This configures what version bytecode the compiler will emit, as well as what JDK APIs are usable.
// See https://openjdk.java.net/jeps/247 for more information.
options.release.set(17)
}
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(
"version" to project.version,
)
inputs.properties(props)
filesMatching("plugin.yml") {
expand(props)
}
}
}