2024-07-02 14:47:57 +02:00
|
|
|
import org.cadixdev.gradle.licenser.LicenseExtension
|
|
|
|
|
2019-07-30 05:25:13 +02:00
|
|
|
plugins {
|
2021-06-12 14:12:22 +02:00
|
|
|
`java-library`
|
2024-07-02 14:47:57 +02:00
|
|
|
id("buildlogic.core-and-platform")
|
2019-07-30 05:25:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-07-02 14:47:57 +02:00
|
|
|
constraints {
|
|
|
|
"implementation"(libs.snakeyaml) {
|
|
|
|
because("Bukkit provides SnakeYaml")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-17 07:11:12 +02:00
|
|
|
"api"(project(":worldguard-libs:core"))
|
2024-07-02 14:47:57 +02:00
|
|
|
"api"(libs.worldedit.core)
|
|
|
|
"implementation"(libs.flyway.core)
|
|
|
|
"implementation"(libs.snakeyaml)
|
|
|
|
"implementation"(libs.guava)
|
|
|
|
"compileOnlyApi"(libs.jsr305)
|
|
|
|
"implementation"(libs.gson)
|
|
|
|
|
|
|
|
"compileOnly"(libs.worldedit.libs.ap)
|
|
|
|
"annotationProcessor"(libs.worldedit.libs.ap)
|
|
|
|
// ensure this is on the classpath for the AP
|
|
|
|
"annotationProcessor"(libs.guava)
|
|
|
|
|
|
|
|
"compileOnly"(libs.autoService) {
|
|
|
|
because("Needed to resolve annotations in Piston")
|
|
|
|
}
|
2019-07-30 05:25:13 +02:00
|
|
|
|
2024-07-02 14:47:57 +02:00
|
|
|
"testImplementation"(libs.hamcrest.library)
|
2019-07-30 05:25:13 +02:00
|
|
|
}
|
|
|
|
|
2024-07-02 14:47:57 +02:00
|
|
|
tasks.compileJava {
|
2019-07-30 05:25:13 +02:00
|
|
|
dependsOn(":worldguard-libs:build")
|
2024-07-02 14:47:57 +02:00
|
|
|
options.compilerArgs.add("-Aarg.name.key.prefix=")
|
|
|
|
}
|
|
|
|
|
|
|
|
configure<LicenseExtension> {
|
|
|
|
exclude {
|
|
|
|
it.file.startsWith(project.layout.buildDirectory.get().asFile)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
configure<PublishingExtension> {
|
|
|
|
publications.named<MavenPublication>("maven") {
|
|
|
|
artifactId = the<BasePluginExtension>().archivesName.get()
|
|
|
|
from(components["java"])
|
|
|
|
}
|
|
|
|
}
|