-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
56 lines (47 loc) · 1.22 KB
/
build.gradle.kts
File metadata and controls
56 lines (47 loc) · 1.22 KB
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
plugins {
java
id("com.gradleup.shadow") version "9.3.1"
id("xyz.jpenilla.run-paper") version "3.0.2"
}
group = "net.democracycraft"
version = "1.0.16"
repositories {
mavenCentral()
maven(uri("https://jitpack.io"))
maven("https://repo.papermc.io/repository/maven-public/") {
name = "papermc-repo"
}
}
dependencies {
val democracyLibVersion = "5891d074b3"
val democracyLib = "com.github.MCCitiesNetwork:DemocracyLib:$democracyLibVersion"
compileOnly("io.papermc.paper:paper-api:1.21.8-R0.1-SNAPSHOT")
compileOnly("net.kyori:adventure-text-minimessage:4.17.0")
compileOnly("com.github.plan-player-analytics:Plan:5.6.2965")
implementation(democracyLib)
}
tasks {
runServer {
minecraftVersion("1.21.8")
}
shadowJar {
configurations = listOf(project.configurations.runtimeClasspath.get())
archiveClassifier.set("")
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
tasks.build {
dependsOn("shadowJar")
}
tasks.processResources {
val props = mapOf("version" to version)
inputs.properties(props)
filteringCharset = "UTF-8"
filesMatching("plugin.yml") {
expand(props)
}
}