mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 10:14:42 +02:00
It runs! And it's small!
This commit is contained in:

committed by
Alexander Söderberg

parent
c198305b5e
commit
e15b5a07fb
@ -1,11 +1,13 @@
|
||||
import java.time.format.DateTimeFormatter
|
||||
|
||||
dependencies {
|
||||
// Expected everywhere.
|
||||
api("org.json:json:20200518")
|
||||
api("javax.annotation:javax.annotation-api:1.3.2")
|
||||
compileOnlyApi("javax.annotation:javax.annotation-api:1.3.2")
|
||||
|
||||
// Minecraft expectations
|
||||
compileOnlyApi("com.google.guava:guava:21.0") // Minecraft uses v21.0
|
||||
compileOnlyApi("com.google.code.gson:gson:2.8.0") // Minecraft uses v2.8.0
|
||||
api("org.slf4j:slf4j-api:1.7.25") // Minecraft uses v1.7.25
|
||||
|
||||
// Platform expectations
|
||||
compileOnlyApi("org.yaml:snakeyaml:1.26") // Some platforms provide this
|
||||
@ -15,16 +17,40 @@ dependencies {
|
||||
api("net.kyori:adventure-text-minimessage:4.0.0-SNAPSHOT")
|
||||
|
||||
// Guice
|
||||
api("com.google.inject:guice:4.2.3")
|
||||
api("com.google.inject.extensions:guice-assistedinject:4.2.3")
|
||||
api("com.google.inject:guice:4.2.3") {
|
||||
exclude(group = "com.google.guava")
|
||||
}
|
||||
api("com.google.inject.extensions:guice-assistedinject:4.2.3") {
|
||||
exclude("com.google.inject", "guice")
|
||||
}
|
||||
compileOnlyApi("com.google.code.findbugs:annotations:3.0.1")
|
||||
compileOnlyApi("javax.inject:javax.inject:1")
|
||||
|
||||
// Logging
|
||||
api("org.apache.logging.log4j:log4j-slf4j-impl:2.8.1")
|
||||
// Plugins
|
||||
compileOnlyApi("com.sk89q.worldedit:worldedit-core:7.2.0-SNAPSHOT") {
|
||||
exclude(group = "bukkit-classloader-check")
|
||||
exclude(group = "mockito-core")
|
||||
exclude(group = "dummypermscompat")
|
||||
}
|
||||
testImplementation("com.sk89q.worldedit:worldedit-core:7.2.0-SNAPSHOT")
|
||||
|
||||
// Other libraries
|
||||
runtimeOnly("org.apache.logging.log4j:log4j-slf4j-impl:2.8.1") {
|
||||
exclude(group = "org.slf4j")
|
||||
}
|
||||
api("org.khelekore:prtree:1.7.0-SNAPSHOT")
|
||||
api("aopalliance:aopalliance:1.0")
|
||||
api("com.intellectualsites:Pipeline:1.4.0-SNAPSHOT")
|
||||
api("com.intellectualsites:Pipeline:1.4.0-SNAPSHOT") {
|
||||
exclude(group = "com.google.guava")
|
||||
}
|
||||
}
|
||||
|
||||
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"))
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user