PlotSquared/Core/build.gradle.kts

68 lines
2.1 KiB
Plaintext
Raw Normal View History

2020-10-08 13:27:23 +02:00
import java.time.format.DateTimeFormatter
dependencies {
2022-06-06 12:46:22 +02:00
implementation(platform("com.intellectualsites:bom:1.0.0-SNAPSHOT"))
// Expected everywhere.
2022-06-06 12:46:22 +02:00
compileOnlyApi("org.checkerframework:checker-qual")
// Minecraft expectations
compileOnlyApi(libs.gson)
compileOnly(libs.guava)
// Platform expectations
compileOnlyApi(libs.snakeyaml)
// Adventure
2022-06-06 12:46:22 +02:00
api("net.kyori:adventure-api")
api("net.kyori:adventure-text-minimessage")
// Guice
api(libs.guice) {
2020-10-08 13:27:23 +02:00
exclude(group = "com.google.guava")
}
api(libs.guiceassistedinject) {
2020-10-08 13:27:23 +02:00
exclude("com.google.inject", "guice")
}
api(libs.spotbugs)
2020-10-08 13:27:23 +02:00
// Plugins
2021-11-05 11:57:58 +01:00
compileOnly(libs.worldeditCore) {
2020-10-08 13:27:23 +02:00
exclude(group = "bukkit-classloader-check")
exclude(group = "mockito-core")
exclude(group = "dummypermscompat")
}
testImplementation(libs.worldeditCore)
2021-11-05 11:57:58 +01:00
compileOnly(libs.fastasyncworldeditCore) { isTransitive = false }
2021-09-20 16:21:18 +02:00
testImplementation(libs.fastasyncworldeditCore) { isTransitive = false }
// Logging
compileOnlyApi(libs.log4j)
// Other libraries
api(libs.prtree)
api(libs.aopalliance)
api(libs.cloudServices)
api(libs.arkitektonika)
api(libs.paster)
2020-10-08 13:27:23 +02:00
}
tasks.processResources {
filesMatching("plugin.properties") {
expand(
"version" to project.version.toString(),
"commit" to rootProject.grgit.head().abbreviatedId,
"date" to rootProject.grgit.head().dateTime.format(DateTimeFormatter.ofPattern("yy.MM.dd"))
2020-10-08 13:27:23 +02:00
)
}
}
tasks {
withType<Javadoc> {
val opt = options as StandardJavadocDocletOptions
opt.links("https://docs.enginehub.org/javadoc/com.sk89q.worldedit/worldedit-core/" + libs.worldeditCore.get().versionConstraint.toString())
opt.links("https://jd.adventure.kyori.net/api/" + libs.adventure.get().versionConstraint.toString())
opt.links("https://google.github.io/guice/api-docs/" + libs.guice.get().versionConstraint.toString() + "/javadoc/")
opt.links("https://checkerframework.org/api/")
}
}