-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
70 lines (55 loc) · 2.04 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
plugins {
kotlin("jvm") version "1.9.22"
id("com.github.johnrengelman.shadow") version "8.1.1"
id("xyz.jpenilla.run-paper") version "2.1.0"
}
group = "com.kruthers"
version = "2.8.0"
description = "The core plugin used to manage the gamemode 4 public server"
repositories {
mavenCentral()
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://nexus.scarsz.me/content/groups/public/")
}
dependencies {
compileOnly(kotlin("stdlib"))
compileOnly("net.kyori:adventure-api:4.15.0")
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
val cloudVersion = "1.8.4"
compileOnly("cloud.commandframework","cloud-core",cloudVersion)
compileOnly("cloud.commandframework","cloud-annotations",cloudVersion)
compileOnly("cloud.commandframework","cloud-paper",cloudVersion)
compileOnly("cloud.commandframework","cloud-minecraft-extras",cloudVersion)
compileOnly("me.clip","placeholderapi","2.11.1")
compileOnly("net.luckperms","api","5.4")
compileOnly("me.confuser.banmanager:BanManagerCommon:7.9.0")
compileOnly("com.discordsrv:discordsrv:1.26.0")
}
tasks {
shadowJar {
destinationDirectory.set(file("build"))
archiveClassifier.set("")
dependencies {
exclude(dependency("io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT"))
exclude(dependency("me.clip:placeholderapi:2.11.1"))
exclude(dependency("net.luckperms:api:5.4"))
exclude(dependency("me.confuser.banmanager:BanManagerCommon:7.9.0"))
exclude(dependency("com.discordsrv:discordsrv:1.26.0"))
}
minimize()
}
build {
dependsOn(shadowJar)
}
processResources {
expand("name" to project.name, "description" to project.description, "version" to project.version)
}
runServer {
dependsOn("build")
minecraftVersion("1.20.4")
}
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}