-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
103 lines (85 loc) · 3.11 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
plugins {
id("java")
id("com.github.johnrengelman.shadow") version "8.1.1"
id("xyz.jpenilla.run-paper") version "2.3.0"
id("net.minecrell.plugin-yml.paper") version "0.6.0"
}
repositories {
mavenLocal()
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/snapshots/")
// Paper
maven("https://repo.papermc.io/repository/maven-public/")
// PlaceholderAPI
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
}
dependencies {
testImplementation(platform("org.junit:junit-bom:5.10.2"))
testImplementation("org.junit.jupiter:junit-jupiter")
// Paper
compileOnly("io.papermc.paper", "paper-api", "1.20.6-R0.1-SNAPSHOT")
// Config
paperLibrary("org.spongepowered", "configurate-hocon", "4.2.0-SNAPSHOT")
paperLibrary("net.kyori", "adventure-serializer-configurate4", "4.17.0")
// Plugins
compileOnly("me.clip", "placeholderapi", "2.11.5")
compileOnly("io.github.miniplaceholders", "miniplaceholders-api", "2.2.3")
// Utils
paperLibrary("com.google.inject", "guice", "7.0.0")
paperLibrary("net.objecthunter", "exp4j", "0.4.8")
}
version = "1.7.0-SNAPSHOT"
paper {
val mainPackage = "github.tyonakaisan.commanditem"
generateLibrariesJson = true
name = rootProject.name
version = project.version as String
main = "$mainPackage.CommandItem"
loader = "$mainPackage.CommandItemLoader"
bootstrapper = "$mainPackage.CommandItemBootstrap"
apiVersion = "1.20"
author = "tyonakaisan"
website = "https://github.com/tyonakaisan"
serverDependencies {
register("PlaceholderAPI") {
required = false
}
register("MiniPlaceholders") {
required = false
}
}
}
tasks {
val paperPlugins = runPaper.downloadPluginsSpec {
// TabTps
url("https://cdn.modrinth.com/data/cUhi3iB2/versions/QmxLremu/tabtps-spigot-1.3.21.jar")
github("jpenilla","TabTPS", "v1.3.24", "tabtps-spigot-1.3.24.jar")
// Spark
// url("https://ci.lucko.me/job/spark/430/artifact/spark-bukkit/build/libs/spark-1.10.85-bukkit.jar")
// PlaceholderAPI
// hangar("PlaceholderAPI", "2.11.5")
// MiniPlaceholders
github("MiniPlaceholders", "MiniPlaceholders", "2.2.4", "MiniPlaceholders-Paper-2.2.4.jar")
// github("MiniPlaceholders", "PlaceholderAPI-Expansion", "1.2.0", "PlaceholderAPI-Expansion-1.2.0.jar")
github("MiniPlaceholders", "Player-Expansion", "1.2.0", "MiniPlaceholders-Player-Expansion-1.2.0.jar")
github("MiniPlaceholders", "Expressions-Expansion", "1.2.0", "Expressions-Expansion-1.2.0.jar")
github("ViaVersion", "ViaVersion", "5.0.1", "ViaVersion-5.0.1.jar")
}
compileJava {
this.options.encoding = Charsets.UTF_8.name()
options.release.set(21)
}
shadowJar {
this.archiveClassifier.set(null as String?)
archiveVersion.set(paper.version)
}
runServer {
minecraftVersion("1.20.6")
downloadPlugins {
downloadPlugins.from(paperPlugins)
}
}
test {
useJUnitPlatform()
}
}