Files
Cap-Pearl-Speed/build.gradle.kts
T
2026-06-15 00:55:02 -04:00

39 lines
952 B
Kotlin

plugins {
eclipse
id("java-library")
id("xyz.jpenilla.run-paper") version "3.0.2"
}
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.19.4-R0.1-SNAPSHOT")
}
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.19")
jvmArgs("-Xms2G", "-Xmx2G")
}
processResources {
val props = mapOf("version" to version, "description" to project.description)
inputs.properties(props)
filesMatching("plugin.yml") {
filter<org.apache.tools.ant.filters.ReplaceTokens>("tokens" to props)
}
}
}