2021-10-17 16:32:36 +02:00
|
|
|
import org.gradle.api.Project
|
|
|
|
import org.gradle.kotlin.dsl.apply
|
|
|
|
import org.gradle.kotlin.dsl.dependencies
|
|
|
|
|
|
|
|
// For specific version pinning, see
|
|
|
|
// https://papermc.io/repo/service/rest/repository/browse/maven-public/io/papermc/paper/dev-bundle/
|
2021-11-30 00:16:19 +01:00
|
|
|
fun Project.applyPaperweightAdapterConfiguration() {
|
2021-10-17 16:32:36 +02:00
|
|
|
applyCommonConfiguration()
|
|
|
|
apply(plugin = "java-library")
|
|
|
|
applyCommonJavaConfiguration(
|
|
|
|
sourcesJar = true,
|
|
|
|
banSlf4j = false,
|
|
|
|
)
|
|
|
|
apply(plugin = "io.papermc.paperweight.userdev")
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
"implementation"(project(":worldedit-bukkit"))
|
2022-06-14 17:02:11 +02:00
|
|
|
"implementation"(platform("com.intellectualsites.bom:bom-1.18.x:1.5"))
|
2021-10-17 16:32:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named("assemble") {
|
|
|
|
dependsOn("reobfJar")
|
|
|
|
}
|
|
|
|
}
|