-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
82 lines (75 loc) · 2.63 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
/*
* This file is a part of UltraStaffChat (https://github.com/HyperaDev/UltraStaffChat).
*
* Copyright (C) 2021-2023 The UltraStaffChat Authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
plugins {
id("ultrastaffchat.common")
alias(libs.plugins.shadow)
java
}
group = "dev.hypera"
version = "5.2.3-SNAPSHOT"
description = "A fully customisable staff communication plugin for BungeeCord!"
repositories {
maven("https://repo.hypera.dev/mirror/") // Needed to resolve com.mojang:brigadier (mirrors libraries.minecraft.net).
maven("https://repo.hypera.dev/releases/")
mavenCentral()
sonatype.ossSnapshots()
}
dependencies {
implementation(libs.updatelib)
implementation(libs.adventure.api)
implementation(libs.adventure.platform.bungeecord)
implementation(libs.bstats.bungeecord)
compileOnly(libs.platform.bungeecord)
compileOnly(libs.annotations)
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks {
jar {
manifest.attributes (
"Specification-Title" to project.name,
"Specification-Version" to project.version,
"Specification-Vendor" to "Hypera Development",
"Implementation-Title" to project.name,
"Implementation-Version" to project.version,
"Implementation-Vendor" to "Hypera Development",
"Implementation-Vendor-Id" to "HyperaDev",
"Implementation-URL" to "https://www.spigotmc.org/resources/68956/",
)
}
shadowJar {
archiveFileName.set("UltraStaffChat-${project.version}.jar")
fun relocate(pattern: String) {
relocate(pattern, "dev.hypera.ultrastaffchat.lib.${pattern.substringAfterLast('.')}")
}
dependencies {
exclude("META-INF/**")
}
relocate("dev.hypera.updatelib")
relocate("net.kyori")
relocate("org.bstats")
relocate("com.vdurmont.semver4j")
relocate("org.json")
}
build {
dependsOn(shadowJar)
}
}