-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
53 lines (39 loc) · 1.47 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
plugins {
java
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "dev.twelveoclock"
version = "1.0.0"
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/public/") {
name = "SpigotMC"
}
maven("https://repo.papermc.io/repository/maven-public/") {
name = "PaperMC"
}
}
dependencies {
compileOnly("org.spigotmc:spigot-api:1.21.4-R0.1-SNAPSHOT")
implementation("org.jetbrains:annotations:26.0.2")
// Jackson
implementation("com.fasterxml.jackson.core:jackson-core:2.18.2")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-toml:2.18.2")
testImplementation("org.junit.jupiter:junit-jupiter:5.11.4")
testImplementation("com.github.seeseemelk:MockBukkit-v1.17:1.13.0")
}
tasks {
test {
useJUnitPlatform()
}
// TODO: Change the second parameter to your plugin's package + the suffix.
// For example, if your main package is "me.example.catplugin",
// change the second parameter for the first relocate to:
// "me.example.catplugin.libs.com.fasterxml".
// Then, follow this pattern to the other relocate calls.
shadowJar {
relocate("com.fasterxml", "dev.twelveoclock.plugintemplate.libs.com.fasterxml")
relocate("org.jetbrains", "dev.twelveoclock.plugintemplate.libs.org.jetbrains")
relocate("org.intellij", "dev.twelveoclock.plugintemplate.libs.org.intellij")
}
}