-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
67 lines (60 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
plugins {
`java-library`
`maven-publish`
id("io.papermc.paperweight.userdev") version "1.5.5"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
repositories {
mavenLocal()
maven("https://repo.maven.apache.org/maven2/")
maven("https://repo.codemc.io/repository/maven-snapshots/")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
mavenCentral()
}
dependencies {
paperweight.paperDevBundle("1.20-R0.1-SNAPSHOT")
api("net.wesjd:anvilgui:1.7.0-SNAPSHOT")
implementation("org.bstats:bstats-bukkit:3.0.2")
compileOnly ("me.clip:placeholderapi:2.11.3")
}
group = "me.foxikle"
version = "1.9.6"
description = "FoxRank"
java.sourceCompatibility = JavaVersion.VERSION_16
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}
tasks {
assemble {
dependsOn(reobfJar)
dependsOn(shadowJar)
}
compileJava {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
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(
"name" to project.name,
"version" to project.version,
"description" to project.description,
"apiVersion" to "1.20"
)
inputs.properties(props)
filesMatching("plugin.yml") {
expand(props)
}
}
reobfJar {
outputJar.set(layout.buildDirectory.file("C:/Users/tscal/Desktop/testserver/plugins/FoxRank-${project.version}.jar"))
}
shadowJar {
relocate("org.bstats", "dev.foxikle.dependencies.bstats")
}
}