mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-11-05 04:48:02 +00:00
mohammed jasem alaajel
8e606fe4d2
MiniMessage is now used for Messages.yml fix bug when from is null when server change
95 lines
2.2 KiB
Plaintext
95 lines
2.2 KiB
Plaintext
import java.io.ByteArrayOutputStream
|
|
|
|
plugins {
|
|
`java-library`
|
|
`maven-publish`
|
|
id("net.kyori.blossom") version "1.2.0"
|
|
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
|
|
val jedisVersion = "4.4.3"
|
|
val configurateVersion = "3.7.3"
|
|
val guavaVersion = "31.1-jre"
|
|
|
|
|
|
dependencies {
|
|
api("com.google.guava:guava:$guavaVersion")
|
|
api("redis.clients:jedis:$jedisVersion")
|
|
api("com.squareup.okhttp:okhttp:2.7.5")
|
|
api("org.spongepowered:configurate-yaml:$configurateVersion")
|
|
api("com.github.ben-manes.caffeine:caffeine:3.1.8")
|
|
|
|
api("net.kyori:adventure-api:4.14.0")
|
|
api("net.kyori:adventure-text-serializer-gson:4.14.0")
|
|
api("net.kyori:adventure-text-serializer-legacy:4.14.0")
|
|
api("net.kyori:adventure-text-serializer-plain:4.14.0")
|
|
api("net.kyori:adventure-text-minimessage:4.14.0")
|
|
|
|
// tests
|
|
testImplementation("junit:junit:4.13.2")
|
|
}
|
|
|
|
description = "RedisBungee interafaces"
|
|
|
|
blossom {
|
|
replaceToken("@version@", "$version")
|
|
// GIT
|
|
var commit: String = ""
|
|
val commitStdout = ByteArrayOutputStream()
|
|
rootProject.exec {
|
|
standardOutput = commitStdout
|
|
commandLine("git", "rev-parse", "HEAD")
|
|
}
|
|
commit = "$commitStdout".replace("\n", "") // for some reason it adds new line so remove it.
|
|
commitStdout.close()
|
|
replaceToken("@git_commit@", commit)
|
|
}
|
|
|
|
java {
|
|
withJavadocJar()
|
|
withSourcesJar()
|
|
}
|
|
|
|
tasks {
|
|
// thanks again for paper too
|
|
withType<Javadoc> {
|
|
val options = options as StandardJavadocDocletOptions
|
|
options.use()
|
|
options.isDocFilesSubDirs = true
|
|
options.links(
|
|
"https://configurate.aoeu.xyz/$configurateVersion/apidocs/", // configurate
|
|
"https://javadoc.io/doc/redis.clients/jedis/$jedisVersion/", // jedis
|
|
"https://guava.dev/releases/$guavaVersion/api/docs/" // guava
|
|
)
|
|
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
compileJava {
|
|
options.encoding = Charsets.UTF_8.name()
|
|
options.release.set(17)
|
|
}
|
|
javadoc {
|
|
options.encoding = Charsets.UTF_8.name()
|
|
}
|
|
processResources {
|
|
filteringCharset = Charsets.UTF_8.name()
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("maven") {
|
|
from(components["java"])
|
|
}
|
|
}
|
|
}
|