-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
52 lines (46 loc) · 1.49 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
plugins {
kotlin("jvm") version "1.7.10"
id("com.github.johnrengelman.shadow") version "7.1.2"
id("net.minecrell.plugin-yml.bukkit") version "0.5.2"
}
val ver = "1.2.2"
group = "me.cookie"
version = ver
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://repo.aikar.co/content/groups/aikar/")
}
dependencies {
compileOnly("org.spigotmc:spigot-api:1.19.2-R0.1-SNAPSHOT")
implementation("co.aikar:acf-paper:0.5.1-SNAPSHOT")
implementation("com.github.stefvanschie.inventoryframework:IF:0.10.14")
implementation("org.bstats:bstats-bukkit:3.0.0")
}
tasks {
shadowJar {
relocate("co.aikar.commands", "me.cookie.fireworky.acf")
relocate("co.aikar.locales", "me.cookie.fireworky.locales")
relocate("org.bstats", "me.cookie.fireworky.bstats")
relocate("com.github.stefvanschie.inventoryframework", "me.cookie.fireworky.inventoryframework")
destinationDirectory.set(file("server/plugins"))
}
compileJava {
options.compilerArgs.add("-parameters")
options.isFork = true
options.forkOptions.executable = "javac"
}
compileKotlin {
kotlinOptions.javaParameters = true
}
}
bukkit {
name = "Fireworky"
version = ver
main = "me.cookie.fireworky.Fireworky"
author = "Cookie"
apiVersion = "1.16" // Due to the use of the hex colors.
libraries = listOf(
"org.jetbrains.kotlin:kotlin-stdlib:1.7.10"
)
}