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-04 13:30:09 +02:00
|
|
|
compileOnlyApi("org.checkerframework:checker-qual:3.12.0")
|
2020-09-20 22:42:13 +02:00
|
|
|
|
|
|
|
// Minecraft expectations
|
2021-04-03 23:15:40 +02:00
|
|
|
compileOnlyApi("com.google.guava:guava:21.0") {
|
2021-04-04 13:30:09 +02:00
|
|
|
because("Minecraft uses 21.0")
|
2021-04-03 23:15:40 +02:00
|
|
|
}
|
|
|
|
compileOnlyApi("com.google.code.gson:gson:2.8.0") {
|
|
|
|
because("Minecraft uses 2.8.0")
|
|
|
|
}
|
2020-09-20 22:42:13 +02:00
|
|
|
|
|
|
|
// Platform expectations
|
2021-04-04 13:30:09 +02:00
|
|
|
compileOnlyApi("org.yaml:snakeyaml:1.27") {
|
|
|
|
because("Bukkit uses 1.27")
|
|
|
|
}
|
2020-09-20 22:42:13 +02:00
|
|
|
|
|
|
|
// Adventure stuff
|
2021-04-04 13:30:09 +02:00
|
|
|
api("net.kyori:adventure-api:4.7.0")
|
2020-09-20 22:42:13 +02:00
|
|
|
api("net.kyori:adventure-text-minimessage:4.0.0-SNAPSHOT")
|
|
|
|
|
|
|
|
// Guice
|
2021-03-23 10:39:17 +01:00
|
|
|
api("com.google.inject:guice:5.0.1") {
|
2020-10-08 13:27:23 +02:00
|
|
|
exclude(group = "com.google.guava")
|
|
|
|
}
|
2021-03-23 10:39:17 +01:00
|
|
|
api("com.google.inject.extensions:guice-assistedinject:5.0.1") {
|
2020-10-08 13:27:23 +02:00
|
|
|
exclude("com.google.inject", "guice")
|
|
|
|
}
|
2020-09-20 22:42:13 +02:00
|
|
|
compileOnlyApi("com.google.code.findbugs:annotations:3.0.1")
|
|
|
|
|
2020-10-08 13:27:23 +02:00
|
|
|
// Plugins
|
2021-04-04 13:30:09 +02:00
|
|
|
compileOnlyApi("com.sk89q.worldedit:worldedit-core:7.2.2") {
|
2020-10-08 13:27:23 +02:00
|
|
|
exclude(group = "bukkit-classloader-check")
|
|
|
|
exclude(group = "mockito-core")
|
|
|
|
exclude(group = "dummypermscompat")
|
|
|
|
}
|
2021-04-04 13:30:09 +02:00
|
|
|
testImplementation("com.sk89q.worldedit:worldedit-core:7.2.2")
|
2020-09-20 22:42:13 +02:00
|
|
|
|
2020-10-08 13:28:58 +02:00
|
|
|
// Logging
|
2021-04-11 10:12:37 +02:00
|
|
|
api("org.slf4j:slf4j-api:1.7.25")
|
2020-10-08 13:27:23 +02:00
|
|
|
runtimeOnly("org.apache.logging.log4j:log4j-slf4j-impl:2.8.1") {
|
|
|
|
exclude(group = "org.slf4j")
|
|
|
|
}
|
2020-10-08 13:28:58 +02:00
|
|
|
|
|
|
|
// Other libraries
|
2020-09-20 22:42:13 +02:00
|
|
|
api("org.khelekore:prtree:1.7.0-SNAPSHOT")
|
|
|
|
api("aopalliance:aopalliance:1.0")
|
2020-10-08 13:27:23 +02:00
|
|
|
api("com.intellectualsites:Pipeline:1.4.0-SNAPSHOT") {
|
|
|
|
exclude(group = "com.google.guava")
|
|
|
|
}
|
2020-12-05 19:50:41 +01:00
|
|
|
api("com.intellectualsites.arkitektonika:Arkitektonika-Client:2.0-SNAPSHOT")
|
2020-12-28 13:30:53 +01:00
|
|
|
api("com.intellectualsites.paster:Paster:1.0.2-SNAPSHOT")
|
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
|
|
|
}
|