-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle.kts
72 lines (61 loc) · 2.04 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
plugins {
`java-library`
id("io.github.goooler.shadow") version "8.1.7"
id("io.freefair.lombok") version "8.6"
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
id("io.papermc.paperweight.userdev") version "1.7.1" apply false
}
bukkit {
name = "MusicBox"
main = "ru.spliterash.musicbox.MusicBox"
apiVersion = "1.13"
authors = listOf("Spliterash")
depend = listOf("NoteBlockAPI")
softDepend = listOf("Vault")
commands {
register("musicbox")
}
}
group = "ru.spliterash"
allprojects {
apply(plugin = "java-library");
apply(plugin = "io.freefair.lombok")
version = "2.1.4"
repositories {
mavenCentral()
mavenLocal()
maven("https://jitpack.io")
maven("https://repo.codemc.org/repository/maven-public")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://oss.sonatype.org/content/groups/public/")
maven("https://repo.clojars.org/")
}
dependencies {
compileOnly("org.jetbrains:annotations:24.0.1")
}
}
val startPath = "ru.spliterash.musicbox.shadow."
tasks.shadowJar {
relocate("com.cryptomorin.xseries", startPath + "xseries")
relocate("org.bstats", startPath + "bstats")
relocate("io.github.bananapuncher714.nbteditor", startPath + "nbteditor")
}
tasks.assemble { dependsOn(tasks.shadowJar) }
dependencies {
api(project(":plugin"))
api(project(":nms"))
api(project(":nms:shared"))
api(project(":nms:versions:12"))
api(project(":nms:versions:13-16"))
api(project(":nms:versions:17"))
api(project(":nms:versions:18"))
api(project(":nms:versions:19_2", "reobf"))
api(project(":nms:versions:19_3", "reobf"))
api(project(":nms:versions:19_4", "reobf"))
api(project(":nms:versions:20_1", "reobf"))
api(project(":nms:versions:20_2", "reobf"))
api(project(":nms:versions:20_3", "reobf"))
api(project(":nms:versions:20_5", "reobf"))
api(project(":nms:versions:21", "reobf"))
api(project(":nms:versions:21_2", "reobf"))
}