-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
70 lines (58 loc) · 1.75 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
java
id("com.github.johnrengelman.shadow") version "7.1.2"
}
group = "com.jacky8399"
version = "1.14"
repositories {
mavenCentral()
maven {
name = "spigotmc-repo"
url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}
maven("https://maven.enginehub.org/repo/")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
mavenLocal()
}
configurations {
testImplementation {
extendsFrom(configurations.compileOnly.get())
}
}
dependencies {
compileOnly("org.spigotmc:spigot-api:1.20.1-R0.1-SNAPSHOT")
compileOnly("net.md-5:bungeecord-chat:1.16-R0.4")
compileOnly("org.jetbrains:annotations:23.0.0")
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.6")
compileOnly("me.clip:placeholderapi:2.11.0")
implementation("org.bstats:bstats-bukkit:2.2.1")
implementation("net.kyori:adventure-api:4.17.0")
implementation("net.kyori:adventure-platform-bukkit:4.3.2")
testImplementation("org.junit.jupiter:junit-jupiter:5.10.0")
testImplementation("org.mockito:mockito-core:5.5.0")
}
tasks {
compileJava {
options.encoding = "UTF-8"
options.release.set(17)
}
processResources {
val props = mapOf("version" to version)
inputs.properties(props)
filteringCharset = "UTF-8"
filesMatching("plugin.yml") {
expand(props)
}
}
withType<ShadowJar> {
relocate("org.bstats", "com.jacky8399.portablebeacons.bstats")
relocate("net.kyori", "com.jacky8399.portablebeacons.adventure")
}
build {
dependsOn(shadowJar)
}
test {
useJUnitPlatform()
}
}