mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-19 10:25:00 +00:00
25 lines
747 B
Kotlin
25 lines
747 B
Kotlin
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/
|
|
fun Project.applyPaperweightAdapterConfiguration() {
|
|
applyCommonConfiguration()
|
|
apply(plugin = "java-library")
|
|
applyCommonJavaConfiguration(
|
|
sourcesJar = true,
|
|
banSlf4j = false,
|
|
)
|
|
apply(plugin = "io.papermc.paperweight.userdev")
|
|
|
|
dependencies {
|
|
"implementation"(project(":worldedit-bukkit"))
|
|
"implementation"(platform("com.intellectualsites.bom:bom-1.18.x:1.9"))
|
|
}
|
|
|
|
tasks.named("assemble") {
|
|
dependsOn("reobfJar")
|
|
}
|
|
}
|