mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-24 22:26:45 +01:00
f4552e358d
- Ditch slf4j in favor of log4j. slf4j is (unfortunately) very much unmaintained at this time and future versions of MC (1.17+) will use log4j version 2.14.1 onwards over some ancient sfl4j version. - Using log4j reduces our jar size as well, because we don't need to bridge it as the game provides it natively.
65 lines
1.5 KiB
Plaintext
65 lines
1.5 KiB
Plaintext
import java.time.format.DateTimeFormatter
|
|
|
|
dependencies {
|
|
// Expected everywhere.
|
|
compileOnlyApi(libs.checkerqual)
|
|
|
|
// Minecraft expectations
|
|
compileOnlyApi(libs.guava) {
|
|
because("Minecraft uses 21.0")
|
|
}
|
|
compileOnlyApi(libs.gson) {
|
|
because("Minecraft uses 2.8.0")
|
|
}
|
|
|
|
// Platform expectations
|
|
compileOnlyApi(libs.snakeyaml) {
|
|
because("Bukkit uses 1.27")
|
|
}
|
|
|
|
// Adventure
|
|
api(libs.adventure)
|
|
api(libs.minimessage)
|
|
|
|
// Guice
|
|
api(libs.guice) {
|
|
exclude(group = "com.google.guava")
|
|
}
|
|
api(libs.guiceassistedinject) {
|
|
exclude("com.google.inject", "guice")
|
|
}
|
|
compileOnlyApi(libs.findbugs)
|
|
|
|
// Plugins
|
|
compileOnlyApi(libs.worldeditCore) {
|
|
exclude(group = "bukkit-classloader-check")
|
|
exclude(group = "mockito-core")
|
|
exclude(group = "dummypermscompat")
|
|
}
|
|
testImplementation(libs.worldeditCore)
|
|
|
|
// Logging
|
|
compileOnlyApi(libs.log4j) {
|
|
because("Minecraft uses 2.8.1")
|
|
}
|
|
|
|
// Other libraries
|
|
api(libs.prtree)
|
|
api(libs.aopalliance)
|
|
api(libs.pipeline) {
|
|
exclude(group = "com.google.guava")
|
|
}
|
|
api(libs.arkitektonika)
|
|
api(libs.paster)
|
|
}
|
|
|
|
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"))
|
|
)
|
|
}
|
|
}
|