-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
49 lines (36 loc) · 1.42 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
plugins {
kotlin("jvm") version "2.1.10"
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"
}
}
dependencies {
compileOnly("org.spigotmc:spigot-api:1.21.4-R0.1-SNAPSHOT")
implementation(kotlin("stdlib-jdk8"))
implementation("com.moandjiezana.toml:toml4j:0.7.2")
testImplementation(kotlin("test-junit5"))
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.org.jetbrains".
// Then, follow this pattern to the other relocate calls.
shadowJar {
relocate("org.jetbrains", "dev.twelveoclock.plugintemplate.libs.org.jetbrains")
relocate("org.intellij", "dev.twelveoclock.plugintemplate.libs.org.intellij")
relocate("com.google", "dev.twelveoclock.plugintemplate.libs.com.google")
relocate("com.moandjiezana", "dev.twelveoclock.plugintemplate.libs.com.moandjiezana")
relocate("kotlin", "dev.twelveoclock.plugintemplate.libs.kotlin")
}
}