PlotSquared/Core/build.gradle.kts

67 lines
1.6 KiB
Plaintext
Raw Normal View History

2020-10-08 13:27:23 +02:00
import java.time.format.DateTimeFormatter
dependencies {
// Expected everywhere.
compileOnlyApi(libs.checkerqual)
// Minecraft expectations
compileOnlyApi(libs.guava) {
2021-04-04 13:30:09 +02:00
because("Minecraft uses 21.0")
2021-04-03 23:15:40 +02:00
}
compileOnlyApi(libs.gson) {
2021-04-03 23:15:40 +02:00
because("Minecraft uses 2.8.0")
}
// Platform expectations
compileOnlyApi(libs.snakeyaml) {
2021-04-04 13:30:09 +02:00
because("Bukkit uses 1.27")
}
// Adventure
api(libs.adventure)
api(libs.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")
}
compileOnlyApi(libs.findbugs)
2020-10-08 13:27:23 +02:00
// Plugins
compileOnlyApi(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-06-08 19:36:45 +02:00
compileOnlyApi(libs.fastasyncworldeditBukkit)
testImplementation(libs.fastasyncworldeditBukkit)
// Logging
compileOnlyApi(libs.log4j) {
2021-05-07 22:12:14 +02:00
because("Minecraft uses 2.8.1")
2020-10-08 13:27:23 +02:00
}
// Other libraries
api(libs.prtree)
api(libs.aopalliance)
api(libs.pipeline) {
2020-10-08 13:27:23 +02:00
exclude(group = "com.google.guava")
}
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
)
}
}