-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
58 lines (52 loc) · 1.71 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
plugins {
java
id("com.github.johnrengelman.shadow") version ("7.1.2")
}
val libs = "net.shibacraft.simpledropinventory.api.libs"
group = "net.shibacraft.simpledropinventory"
version = "0.1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://repo.unnamed.team/repository/unnamed-public/")
maven("https://oss.sonatype.org/content/groups/public/")
maven("https://jitpack.io")
}
dependencies {
implementation("com.github.simplix-softworks:simplixstorage:3.2.4")
implementation("org.bstats:bstats-bukkit:3.0.0")
implementation("me.fixeddev:commandflow-bukkit:0.5.2")
compileOnly("org.spigotmc:spigot-api:1.19.1-R0.1-SNAPSHOT")
compileOnly("org.projectlombok:lombok:1.18.24")
annotationProcessor("org.projectlombok:lombok:1.18.24")
}
tasks {
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
withType<JavaCompile> {
options.encoding = "UTF-8"
}
shadowJar {
delete(file("${project.buildDir}"))
archiveClassifier.set("")
archiveFileName.set("${project.name}-${project.version}.jar")
relocate("me.fixeddev.commandflow", "$libs.cmdFlow")
relocate("net.kyori.text", "$libs.kyori")
relocate("org.bstats", "$libs.bStats")
relocate("de.leonhard.storage", "$libs.leonhardStorage")
relocate("org.checkerframework", "$libs.jetbrains")
relocate("org.jetbrains.annotations", "$libs.jetbrains")
minimize()
}
build {
dependsOn(shadowJar)
}
processResources {
filesMatching("plugin.yml") {
expand("v" to project.version)
}
}
}