WorldGuard/worldguard-core/build.gradle.kts

52 lines
1.3 KiB
Plaintext
Raw Normal View History

2024-07-02 14:47:57 +02:00
import org.cadixdev.gradle.licenser.LicenseExtension
2019-07-30 05:25:13 +02:00
plugins {
`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")
}
}
"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"])
}
}