forked from ZombieStriker/QualityArmoryVehicles2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
95 lines (80 loc) · 2.64 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
import java.io.ByteArrayOutputStream
plugins {
id("java")
id("com.github.johnrengelman.shadow") version "8.1.1"
id("xyz.jpenilla.run-paper") version "2.1.0"
}
group = "me.zombie_striker"
version = "2.3.6"
description = "QualityArmoryVehicles"
java.sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://jitpack.io")
// maven("https://repo.viaversion.com")
maven("https://repo.dmulloy2.net/nexus/repository/public/")
maven("https://repo.citizensnpcs.co/")
maven("https://mvn.lumine.io/repository/maven-public/") {
metadataSources {
artifact()
}
}
maven("https://repo.codemc.org/repository/maven-public/") {
metadataSources {
artifact()
}
}
}
dependencies {
// Libraries
implementation("com.github.cryptomorin:XSeries:9.4.0")
implementation("net.jodah:expiringmap:0.5.10")
implementation("org.codemc.worldguardwrapper:worldguardwrapper:1.2.1-SNAPSHOT")
implementation("dev.triumphteam:triumph-gui:3.1.5")
compileOnly("org.jetbrains:annotations:24.0.1")
// API
compileOnly("net.kyori:adventure-api:4.14.0")
compileOnly("org.spigotmc:spigot-api:1.18-R0.1-SNAPSHOT")
// Compatibilities
// compileOnly("us.myles:viaversion:3.2.1")
compileOnly("com.comphenix.protocol:ProtocolLib:5.0.0")
compileOnly("me.zombie_striker:QualityArmory:2.0.7")
compileOnly("com.github.TownyAdvanced:Towny:0.99.0.11")
compileOnly("net.milkbowl.vault:VaultAPI:1.7")
compileOnly("com.ticxo.modelengine:api:R3.1.8")
compileOnly("org.maxgamer:QuickShop:5.1.2.0")
}
tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
}
jar {
archiveVersion.set("")
}
shadowJar {
archiveVersion.set("")
archiveClassifier.set("")
relocate("com.cryptomorin.xseries", "me.zombie_striker.qav.util.xseries")
relocate("net.jodah.expiringmap", "me.zombie_striker.qav.util.expiringmap")
relocate("org.codemc.worldguardwrapper", "me.zombie_striker.qav.hooks.worldguard")
relocate("dev.triumphteam.gui", "me.zombie_striker.qav.gui")
}
build {
dependsOn("shadowJar")
}
runServer {
minecraftVersion("1.19.4")
}
processResources {
expand(mapOf("version" to version, "commit" to gitDescribe))
}
}
val gitDescribe: String by lazy {
val stdout = ByteArrayOutputStream()
rootProject.exec {
commandLine("git", "rev-parse", "--short", "HEAD")
standardOutput = stdout
}
stdout.toString().trim()
}