2021-07-09 04:57:49 +02:00
|
|
|
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
|
2021-07-08 14:30:01 +02:00
|
|
|
|
|
|
|
plugins {
|
|
|
|
`java-library`
|
2021-12-01 10:48:52 +01:00
|
|
|
id("io.papermc.paperweight.userdev") version "1.3.0"
|
|
|
|
id("xyz.jpenilla.run-paper") version "1.0.5" // Adds runServer and runMojangMappedServer tasks for testing
|
2021-09-08 19:59:16 +02:00
|
|
|
id("net.minecrell.plugin-yml.bukkit") version "0.5.0"
|
2021-07-08 14:30:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
group = "io.papermc.paperweight"
|
|
|
|
version = "1.0.0-SNAPSHOT"
|
2021-08-17 23:37:14 +02:00
|
|
|
description = "Test plugin for paperweight-userdev"
|
2021-07-08 14:30:01 +02:00
|
|
|
|
2021-11-18 01:55:32 +01:00
|
|
|
java {
|
|
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
|
|
|
}
|
|
|
|
|
2021-07-08 14:30:01 +02:00
|
|
|
dependencies {
|
2021-12-01 10:48:52 +01:00
|
|
|
paperDevBundle("1.18-R0.1-SNAPSHOT")
|
2021-07-08 14:30:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
2021-07-09 04:57:49 +02:00
|
|
|
// Run reobfJar on build
|
|
|
|
build {
|
|
|
|
dependsOn(reobfJar)
|
|
|
|
}
|
|
|
|
|
2021-07-08 14:30:01 +02:00
|
|
|
compileJava {
|
|
|
|
options.encoding = Charsets.UTF_8.name()
|
2021-12-01 10:48:52 +01:00
|
|
|
options.release.set(17)
|
2021-07-08 14:30:01 +02:00
|
|
|
}
|
2021-07-09 04:57:49 +02:00
|
|
|
javadoc {
|
|
|
|
options.encoding = Charsets.UTF_8.name()
|
|
|
|
}
|
|
|
|
processResources {
|
|
|
|
filteringCharset = Charsets.UTF_8.name()
|
2021-07-08 14:30:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bukkit {
|
2021-07-09 04:57:49 +02:00
|
|
|
load = BukkitPluginDescription.PluginLoadOrder.STARTUP
|
2021-07-08 14:30:01 +02:00
|
|
|
main = "io.papermc.paperweight.testplugin.TestPlugin"
|
|
|
|
apiVersion = "1.17"
|
|
|
|
authors = listOf("Author")
|
|
|
|
}
|