forked from Slimefun-Addon-Community/MobCapturer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
86 lines (76 loc) · 2.49 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
86 lines (76 loc) · 2.49 KB
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
86
plugins {
id("java")
id("maven-publish")
id("io.freefair.lombok") version "8.7.1"
id("com.gradleup.shadow") version "9.3.0"
id("de.eldoria.plugin-yml.bukkit") version "0.8.0"
id("xyz.jpenilla.run-paper") version "3.0.2"
}
repositories {
mavenLocal()
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://jitpack.io")
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.21.11-R0.1-SNAPSHOT")
compileOnly("com.github.slimefunguguproject:Slimefun4:5c188a3c0a")
compileOnly("net.guizhanss:GuizhanLibPlugin:2.5.0")
implementation("org.bstats:bstats-bukkit:3.0.3")
implementation("com.google.code.findbugs:jsr305:3.0.2")
}
group = "io.github.thebusybiscuit"
version = "UNOFFICIAL"
description = "MobCapturer"
java {
disableAutoTargetJvm()
sourceCompatibility = JavaVersion.VERSION_17
}
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/SlimefunGuguProject/MobCapturer"
depend = listOf("Slimefun")
softDepend = listOf("GuizhanLibPlugin")
}
tasks {
runServer {
downloadPlugins {
val t = System.currentTimeMillis()
// Slimefun
url("https://builds.guizhanss.com/api/download/SlimefunGuguProject/Slimefun4/master/latest?t=$t")
// GuizhanLibPlugin
url("https://builds.guizhanss.com/api/download/ybw0014/GuizhanLibPlugin/master/latest?t=$t")
// SlimeHUD
url("https://builds.guizhanss.com/api/download/SlimefunGuguProject/SlimeHUD/master/latest")
// GuizhanCraft for testing convenient
url("https://builds.guizhanss.com/api/download/ybw0014/GuizhanCraft/master/latest")
}
jvmArgs("-Dcom.mojang.eula.agree=true")
minecraftVersion("1.21.11")
}
}