-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
51 lines (43 loc) · 1.46 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
plugins {
id("java")
id("xyz.jpenilla.run-paper") version "2.2.2"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "io.github.niestrat99"
version = project.property("plugin_version")!!
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://repo.bsdevelopment.org/releases")
maven("https://repo.essentialsx.net/releases/")
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
compileOnly("net.essentialsx:EssentialsXDiscord:2.20.1")
implementation("com.github.thatsmusic99:ConfigurationMaster-API:v2.0.0-rc.2")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
}
shadowJar {
val baseRelocation = "io.github.niestrat99.chatsplus.libs"
relocate("io.github.thatsmusic99.configurationmaster", "$baseRelocation.configurationmaster")
}
processResources {
inputs.property("plugin_version", project.version)
filteringCharset = "UTF-8"
filesMatching("plugin.yml") {
expand(Pair("plugin_version", project.version))
}
}
runServer {
// Configure the Minecraft version for our task.
// This is the only required configuration besides applying the plugin.
// Your plugin's jar (or shadowJar if present) will be used automatically.
minecraftVersion("1.20.4")
}
}