-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
56 lines (45 loc) · 1.21 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
56 lines (45 loc) · 1.21 KB
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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import dev.triumphteam.helper.*
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.10"
id("com.github.johnrengelman.shadow") version "7.0.0"
id("me.mattstudios.triumph") version "0.2.8"
}
group = "me.kaliber"
version = "1.1"
repositories {
mavenCentral()
paper()
papi()
}
dependencies {
implementation(
triumph("cmd", "1.4.6"), // command framework
adventure("bukkit", "4.1.0"), // adventure
kotlin("stdlib", "1.6.10").toString()
)
compileOnly(
paper("1.18.1"),
papi("2.10.10")
)
}
bukkit {
name = "CombatStats"
description = "Record Combat Statistics"
authors = listOf("Kaliber")
depend = listOf("PlaceholderAPI")
apiVersion = "1.13"
}
tasks {
withType<KotlinCompile> {
kotlinOptions { jvmTarget = "1.8" }
}
withType<ShadowJar> {
minimize()
relocate("kotlin", "me.kaliber.libs.kotlin")
relocate("me.mattstudios.mf", "me.kaliber.libs.cmd")
relocate("net.kyori", "me.kaliber.libs.adventure")
archiveFileName.set("CombatStats-${project.version}.jar")
}
}