blob: 4624a4b2292bf068880bc7cf06ae6c691e395020 (
plain)
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
|
plugins {
kotlin("jvm")
id("com.gradleup.shadow")
id("xyz.jpenilla.run-paper")
id("org.jetbrains.dokka")
}
repositories {
maven("https://repo.papermc.io/repository/maven-public/") {
name = "papermc-repo"
}
}
dependencies {
api(project(":engine"))
compileOnly("io.papermc.paper:paper-api:1.21.11-R0.1-SNAPSHOT")
implementation("org.jetbrains.kotlin:kotlin-reflect")
}
tasks {
shadowJar {
archiveClassifier.set("")
archiveBaseName.set("LunaticChat")
}
jar {
enabled = false
}
runServer {
minecraftVersion("1.21")
}
processResources {
val props = mapOf("version" to project.version)
inputs.properties(props)
filteringCharset = "UTF-8"
filesMatching("paper-plugin.yml") {
expand(props)
}
}
build {
dependsOn(shadowJar)
}
}
|