generated from Slimefun/Addon-Template
-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle.kts
66 lines (57 loc) · 1.71 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
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 {
mavenLocal()
mavenCentral()
maven("https://s01.oss.sonatype.org/content/groups/public/")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://jitpack.io")
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT")
compileOnly("com.github.Slimefun:Slimefun4:RC-37")
implementation("org.bstats:bstats-bukkit:3.0.3")
implementation("com.google.code.findbugs:jsr305:3.0.2")
implementation("net.guizhanss:guizhanlib-all:2.2.0-SNAPSHOT")
}
group = "io.github.thebusybiscuit"
version = "UNOFFICIAL"
description = "MobCapturer"
java {
sourceCompatibility = JavaVersion.VERSION_21
}
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}
tasks.compileJava {
options.encoding = "UTF-8"
}
tasks.javadoc {
options.encoding = "UTF-8"
}
tasks.shadowJar {
fun doRelocate(from: String) {
val last = from.split(".").last()
relocate(from, "io.github.thebusybiscuit.mobcapturer.libs.$last")
}
doRelocate("org.bstats")
doRelocate("javax.annotation")
doRelocate("io.papermc.paperlib")
minimize()
archiveClassifier = ""
}
bukkit {
main = "io.github.thebusybiscuit.mobcapturer.MobCapturer"
apiVersion = "1.18"
authors = listOf("TheBusyBiscuit", "ybw0014")
description = "A Slimefun Addon that adds a tool that allows you to capture mobs"
website = "https://github.com/Slimefun-Addon-Community/MobCapturer"
depend = listOf("Slimefun")
}