47 lines
1.3 KiB
Plaintext
Executable File
47 lines
1.3 KiB
Plaintext
Executable File
plugins {
|
|
`java-library`
|
|
id("io.papermc.paperweight.userdev") version "2.0.0-beta.21"
|
|
id("xyz.jpenilla.run-paper") version "2.3.1" // Adds runServer and runMojangMappedServer tasks for testing
|
|
}
|
|
group = "de.hessj.helper"
|
|
version = "1.0-SNAPSHOT"
|
|
description = "helper"
|
|
|
|
tasks.withType<Jar> {
|
|
destinationDirectory.set(file("../"))
|
|
}
|
|
|
|
dependencies {
|
|
//implementation(files("../craftbukkit.jar"))
|
|
paperweight.paperDevBundle("26.1.2.build.+")
|
|
}
|
|
|
|
tasks {
|
|
// Configure reobfJar to run when invoking the build task
|
|
assemble {
|
|
}
|
|
|
|
compileJava {
|
|
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
|
|
|
|
// Set the release flag. This configures what version bytecode the compiler will emit, as well as what JDK APIs are usable.
|
|
// See https://openjdk.java.net/jeps/247 for more information.
|
|
options.release.set(25)
|
|
}
|
|
javadoc {
|
|
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
|
|
}
|
|
processResources {
|
|
filteringCharset = Charsets.UTF_8.name() // We want UTF-8 for everything
|
|
val props = mapOf(
|
|
"name" to project.name,
|
|
"version" to project.version,
|
|
"description" to project.description,
|
|
"apiVersion" to "26.1"
|
|
)
|
|
inputs.properties(props)
|
|
filesMatching("plugin.yml") {
|
|
expand(props)
|
|
}
|
|
}
|
|
} |