forked from WeaponMechanics/WeaponMechanicsSignShop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
67 lines (54 loc) · 1.73 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
group = "com.cjcrafter"
version = "1.1.2"
plugins {
`java-library`
id("com.github.johnrengelman.shadow") version "8.1.1"
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
}
// See https://github.com/Minecrell/plugin-yml
bukkit {
main = "com.cjcrafter.weaponmechanicssignshop.WeaponMechanicsSignShop"
apiVersion = "1.13"
authors = listOf("CJCrafter")
depend = listOf("MechanicsCore", "WeaponMechanics", "Vault")
}
repositories {
mavenCentral()
maven(url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}
dependencies {
implementation("org.bstats:bstats-bukkit:3.0.0")
compileOnly("org.spigotmc:spigot-api:1.20.4-R0.1-SNAPSHOT")
compileOnly("com.cjcrafter:mechanicscore:3.3.0")
compileOnly("com.cjcrafter:weaponmechanics:3.3.0")
// Adventure Chat API
compileOnly("net.kyori:adventure-api:4.15.0")
compileOnly("net.kyori:adventure-platform-bukkit:4.3.2")
compileOnly("net.kyori:adventure-text-minimessage:4.15.0")
}
tasks.shadowJar {
archiveFileName.set("WeaponMechanicsSignShop-${project.version}.jar")
dependencies {
relocate ("org.bstats", "com.cjcrafter.weaponmechanicssignshop.lib.bstats") {
include(dependency("org.bstats:"))
}
}
relocate("net.kyori", "me.deecaad.core.lib")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks {
compileJava {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
options.release.set(16)
}
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
}
}