-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
77 lines (68 loc) · 2.31 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
73
74
75
76
77
plugins {
id("java")
id("com.github.johnrengelman.shadow") version "7.0.0"
}
group = "dev.mrshawn"
version = "1.4.21"
repositories {
maven("https://repo.huaweicloud.com/repository/maven/")
mavenCentral()
maven("https://jitpack.io/")
maven("https://repo.codemc.io/repository/maven-public/")
maven("https://maven.enginehub.org/repo/")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://oss.sonatype.org/content/groups/public/")
maven("https://mvn.lumine.io/repository/maven-public")
}
dependencies {
compileOnly("org.spigotmc:spigot-api:1.20-R0.1-SNAPSHOT")
// NBT API
compileOnly("de.tr7zw:item-nbt-api-plugin:2.14.1")
// PlaceholderAPI
compileOnly("me.clip:placeholderapi:2.11.6")
// MythicMobs 4 and 5
compileOnly("io.lumine:Mythic-Dist:4.13.0")
compileOnly("io.lumine:Mythic:5.6.2")
compileOnly("io.lumine:LumineUtils:1.20-SNAPSHOT")
// WorldGuard/WorldEdit
compileOnly("com.sk89q.worldedit:worldedit-bukkit:7.2.0") {
exclude(group="org.spigotmc", module="spigot-api")
}
compileOnly("com.sk89q.worldedit:worldedit-core:7.2.0")
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.1") {
exclude(group="org.spigotmc", module="spigot-api")
}
compileOnly("com.sk89q.worldguard:worldguard-core:7.0.1")
// LangUtils (legacy)
compileOnly("com.github.MascusJeoraly:LanguageUtils:1.9")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = sourceCompatibility
}
tasks {
build {
dependsOn(shadowJar)
}
shadowJar {
archiveClassifier.set("")
/*
mapOf(
"org.apache.commons.io" to "commons.io"
).forEach { (original,target) ->
relocate(original, "dev.mrshawn.deathmessages.shadow.$target")
}
*/
}
processResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
from(sourceSets.main.get().resources.srcDirs) {
expand("version" to project.version)
include("plugin.yml")
}
}
withType<JavaCompile>().configureEach {
options.encoding = "utf-8"
}
}