This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
58 lines (47 loc) · 1.54 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
java
id("com.github.johnrengelman.shadow") version "7.1.2"
id("net.minecrell.plugin-yml.bukkit") version "0.5.2"
}
repositories {
mavenCentral()
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://oss.sonatype.org/content/groups/public/")
maven("https://repo.mattstudios.me/artifactory/public/")
}
dependencies {
implementation("dev.triumphteam:triumph-gui:3.1.3")
implementation("me.mattstudios.utils:matt-framework:1.4.6")
implementation("org.tomlj:tomlj:1.1.0")
implementation("org.spongepowered:configurate-yaml:4.1.2")
compileOnly("net.luckperms:api:5.4")
compileOnly("me.clip:placeholderapi:2.11.1")
compileOnly("io.papermc.paper:paper-api:1.19.2-R0.1-SNAPSHOT")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
tasks {
withType<JavaCompile> {
options.encoding = Charsets.UTF_8.name()
}
withType<ShadowJar> {
fun reloc(vararg clazz: String) {
clazz.forEach { relocate(it, "${project.group}.${rootProject.name}.libs.$it") }
}
archiveFileName.set("MCSITags-${project.version}.jar")
}
build {
dependsOn(shadowJar)
}
}
bukkit {
name = "MCSITags"
version = "${project.version}"
author = "Frcsty"
main = "${project.group}.${rootProject.name}.TagsPlugin"
apiVersion = "1.19"
depend = listOf("LuckPerms")
}