This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
101 lines (85 loc) · 3.32 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
kotlin("jvm") version "1.4.21"
id("com.github.johnrengelman.shadow") version "5.1.0"
}
group = "net.savagelabs"
version = "v1.5.2"
repositories {
mavenCentral()
mavenLocal()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots")
maven("https://nexus.savagelabs.net/repository/maven-releases/")
maven("https://rayzr.dev/repo/")
maven("https://libraries.minecraft.net")
maven("http://repo.dmulloy2.net/nexus/repository/public/")
maven("http://repo.extendedclip.com/content/repositories/placeholderapi/")
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://repo.codemc.org/repository/maven-public")
//maven("http://nexus.okkero.com/repository/maven-releases/")
maven("https://jitpack.io")
}
dependencies {
implementation("org.ocpsoft.prettytime:prettytime:4.0.1.Final")
implementation("org.bstats:bstats-bukkit:1.7")
implementation("io.papermc:paperlib:1.0.2")
implementation(project(":SavagePluginX"))
implementation(project(":WorldBorderUtil"))
implementation(files("lib/hologram-1.1.jar"))
implementation("com.github.brcdev-minecraft:shopgui-api:2.1.1")
//implementation(files("lib/HologramLib-1.0.2.jar"))
compileOnly(kotlin("stdlib-jdk8"))
compileOnly("org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT")
compileOnly("me.clip:placeholderapi:2.9.2")
compileOnly("com.github.MilkBowl:VaultAPI:1.7")
compileOnly("com.github.OmerBenGera:WildStackerAPI:b19")
// Present in XCore -- for IntelliJ indexing.
compileOnly("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1")
compileOnly("com.fasterxml.jackson.module:jackson-module-kotlin:2.11.0")
compileOnly("com.fasterxml.jackson.core:jackson-databind:2.11.0")
compileOnly("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.11.1")
compileOnly("com.cryptomorin:XSeries:6.0.0")
compileOnly("me.rayzr522:jsonmessage:1.2.0")
compileOnly("com.github.MinusKube:SmartInvs:master-SNAPSHOT")
compileOnly("com.deanveloper:skullcreator:2.0.0")
compileOnly("org.litote.kmongo:kmongo-coroutine:4.0.2")
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.freeCompilerArgs = listOf("-Xinline-classes")
}
processResources {
filter<ReplaceTokens>(
"tokens" to mapOf(
"project.version" to project.version
)
)
}
val build by existing {
dependsOn(shadowJar)
}
val copyResources by registering(Copy::class) {
from("src/main/resources")
into(buildDir.resolve("resources/main"))
dependsOn(processResources)
}
val shadowJar = named<ShadowJar>("shadowJar") {
dependsOn(copyResources)
mergeServiceFiles()
exclude("META-INF/*.DSA")
exclude("META-INF/*.RSA")
relocate("org.bstats", "net.savagelabs.skyblock.shade.bstats")
archiveFileName.set("SkyblockX-${version}.jar")
}
val copyToDebug by registering(Copy::class) {
dependsOn(shadowJar)
from(shadowJar.get().archiveFile.get())
into(projectDir.resolve("debug/plugins"))
}
val ci = task("ci") {
dependsOn(clean)
dependsOn(shadowJar)
}
}