-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.gradle.kts
59 lines (52 loc) · 1.69 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
plugins {
id("java")
id("maven-publish")
id("io.freefair.lombok") version "8.7.1"
id("com.gradleup.shadow") version "8.3.0"
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
}
repositories {
mavenCentral()
maven("https://s01.oss.sonatype.org/content/groups/public/")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://jitpack.io")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT")
compileOnly("com.github.Slimefun:Slimefun4:a1a2abbc47")
compileOnly("me.clip:placeholderapi:2.11.6")
implementation("org.bstats:bstats-bukkit:3.1.0")
implementation("com.google.code.findbugs:jsr305:3.0.2")
implementation("net.guizhanss:guizhanlib-all:2.2.0")
}
group = "io.github.thebusybiscuit"
version = "UNOFFICIAL"
java {
disableAutoTargetJvm()
sourceCompatibility = JavaVersion.VERSION_17
}
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}
tasks.shadowJar {
fun doRelocate(from: String) {
val last = from.split(".").last()
relocate(from, "io.github.thebusybiscuit.extraheads.libs.$last")
}
doRelocate("org.bstats")
doRelocate("javax.annotation")
minimize()
archiveClassifier = ""
}
bukkit {
main = "io.github.thebusybiscuit.extraheads.ExtraHeads"
apiVersion = "1.18"
authors = listOf("TheBusyBiscuit", "ybw0014")
description = "A Slimefun Addon that adds heads of mobs"
website = "https://github.com/Slimefun-Addon-Community/ExtraHeads"
depend = listOf("Slimefun")
softDepend = listOf("PlaceholderAPI")
}