-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
40 lines (35 loc) · 1.13 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
40 lines (35 loc) · 1.13 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
plugins {
id("java-library")
id("xyz.jpenilla.run-paper") version "3.0.2"
}
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven { url = uri("https://repo.codemc.io/repository/maven-releases/") }
maven { url = uri("https://repo.codemc.io/repository/maven-snapshots/") }
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT")
compileOnly("com.github.retrooper:packetevents-spigot:2.13.0")
}
java {
toolchain.languageVersion = JavaLanguageVersion.of(17)
}
tasks {
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.18.2")
jvmArgs("-Xms2G", "-Xmx2G")
}
processResources {
val props = mapOf("version" to version, "description" to project.description)
filesMatching("paper-plugin.yml") {
expand(props)
}
filesMatching("plugin.yml") {
expand(props)
}
}
}