2020-10-08 13:27:23 +02:00
|
|
|
import java.time.format.DateTimeFormatter
|
|
|
|
|
2020-09-20 22:42:13 +02:00
|
|
|
dependencies {
|
|
|
|
// Expected everywhere.
|
2021-04-30 09:50:22 +02:00
|
|
|
compileOnlyApi(libs.checkerqual)
|
2020-09-20 22:42:13 +02:00
|
|
|
|
|
|
|
// Minecraft expectations
|
2021-04-30 09:50:22 +02:00
|
|
|
compileOnlyApi(libs.guava) {
|
2021-04-04 13:30:09 +02:00
|
|
|
because("Minecraft uses 21.0")
|
2021-04-03 23:15:40 +02:00
|
|
|
}
|
2021-04-30 09:50:22 +02:00
|
|
|
compileOnlyApi(libs.gson) {
|
2021-04-03 23:15:40 +02:00
|
|
|
because("Minecraft uses 2.8.0")
|
|
|
|
}
|
2020-09-20 22:42:13 +02:00
|
|
|
|
|
|
|
// Platform expectations
|
2021-04-30 09:50:22 +02:00
|
|
|
compileOnlyApi(libs.snakeyaml) {
|
2021-04-04 13:30:09 +02:00
|
|
|
because("Bukkit uses 1.27")
|
|
|
|
}
|
2020-09-20 22:42:13 +02:00
|
|
|
|
2021-04-30 09:50:22 +02:00
|
|
|
// Adventure
|
|
|
|
api(libs.adventure)
|
|
|
|
api(libs.minimessage)
|
2020-09-20 22:42:13 +02:00
|
|
|
|
|
|
|
// Guice
|
2021-04-30 09:50:22 +02:00
|
|
|
api(libs.guice) {
|
2020-10-08 13:27:23 +02:00
|
|
|
exclude(group = "com.google.guava")
|
|
|
|
}
|
2021-04-30 09:50:22 +02:00
|
|
|
api(libs.guiceassistedinject) {
|
2020-10-08 13:27:23 +02:00
|
|
|
exclude("com.google.inject", "guice")
|
|
|
|
}
|
2021-04-30 09:50:22 +02:00
|
|
|
compileOnlyApi(libs.findbugs)
|
2020-09-20 22:42:13 +02:00
|
|
|
|
2020-10-08 13:27:23 +02:00
|
|
|
// Plugins
|
2021-04-30 09:50:22 +02:00
|
|
|
compileOnlyApi(libs.worldeditCore) {
|
2020-10-08 13:27:23 +02:00
|
|
|
exclude(group = "bukkit-classloader-check")
|
|
|
|
exclude(group = "mockito-core")
|
|
|
|
exclude(group = "dummypermscompat")
|
|
|
|
}
|
2021-04-30 09:50:22 +02:00
|
|
|
testImplementation(libs.worldeditCore)
|
2020-09-20 22:42:13 +02:00
|
|
|
|
2020-10-08 13:28:58 +02:00
|
|
|
// Logging
|
2021-06-03 12:40:27 +02:00
|
|
|
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
|
|
|
}
|
2020-10-08 13:28:58 +02:00
|
|
|
|
|
|
|
// Other libraries
|
2021-04-30 09:50:22 +02:00
|
|
|
api(libs.prtree)
|
|
|
|
api(libs.aopalliance)
|
|
|
|
api(libs.pipeline) {
|
2020-10-08 13:27:23 +02:00
|
|
|
exclude(group = "com.google.guava")
|
|
|
|
}
|
2021-04-30 09:50:22 +02:00
|
|
|
api(libs.arkitektonika)
|
|
|
|
api(libs.paster)
|
2020-10-08 13:27:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.processResources {
|
|
|
|
filesMatching("plugin.properties") {
|
|
|
|
expand(
|
2021-01-09 22:28:41 +01:00
|
|
|
"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
|
|
|
)
|
|
|
|
}
|
2020-09-20 22:42:13 +02:00
|
|
|
}
|