-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
61 lines (45 loc) · 1.38 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
plugins {
java
`maven-publish`
id("com.github.johnrengelman.shadow") version "7.1.2"
}
group = "io.github.sh0inx"
version = "1.1.1"
description = "DragonCancel"
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://nexus.iridiumdevelopment.net/repository/maven-releases/")
maven("https://repo.codemc.org/repository/maven-public/")
}
dependencies {
implementation("org.bstats:bstats-bukkit:3.0.2")
implementation("com.iridium:IridiumColorAPI:1.0.6")
implementation("de.tr7zw:item-nbt-api:2.12.0")
compileOnly("org.spigotmc:spigot-api:1.19.4-R0.1-SNAPSHOT")
}
tasks {
jar {
dependsOn("shadowJar")
enabled = false
}
compileJava {
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
targetCompatibility = JavaVersion.VERSION_1_8.toString()
}
processResources {
filesMatching("**/plugin.yml") {
expand(rootProject.project.properties)
}
outputs.upToDateWhen { false }
}
shadowJar {
fun relocate(origin: String) =
relocate(origin, "io.github.sh0inx.dependencies${origin.substring(origin.lastIndexOf('.'))}")
archiveClassifier.set("")
relocate("org.bstats")
relocate("com.iridium")
relocate("de.tr7zw.changeme.nbtapi")
minimize()
}
}