-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.gradle.kts
85 lines (71 loc) · 2.43 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
import java.io.ByteArrayOutputStream
plugins {
id("java")
id("com.gradleup.shadow") version "8.3.5"
}
group = "me.zombie_striker"
version = "2.4"
description = "QualityArmoryVehicles"
java.sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://repo.dmulloy2.net/repository/public/")
maven("https://repo.citizensnpcs.co/")
maven("https://repo.glaremasters.me/repository/towny/")
maven("https://mvn.lumine.io/repository/maven-public/")
maven("https://repo.codemc.io/repository/maven-public/") {
metadataSources {
artifact()
}
}
maven("https://jitpack.io")
}
dependencies {
// Libraries
implementation("com.github.cryptomorin:XSeries:12.1.0")
implementation("net.jodah:expiringmap:0.5.11")
implementation("org.codemc.worldguardwrapper:worldguardwrapper:1.2.1-SNAPSHOT")
implementation("dev.triumphteam:triumph-gui:3.1.10")
compileOnly("org.jetbrains:annotations:26.0.1")
// API
compileOnly("net.kyori:adventure-api:4.18.0")
compileOnly("org.spigotmc:spigot-api:1.20.4-R0.1-SNAPSHOT")
// Compatibilities
compileOnly("com.comphenix.protocol:ProtocolLib:5.3.0")
compileOnly("me.zombie_striker:QualityArmory:2.0.17")
compileOnly("com.palmergames.bukkit.towny:towny:0.101.0.0")
compileOnly("com.github.MilkBowl:VaultAPI:1.7.1")
compileOnly("com.ticxo.modelengine:api:R3.2.0")
compileOnly("org.maxgamer:QuickShop:5.1.2.5")
}
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")
}
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()
}