2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2026-04-02 21:20:47 +00:00
RedisBungee/redisbungee/api/build.gradle.kts
Mohammed Alteneiji e4fe6014ac
make RedisBungee projects compilable
still same 0.13.0 core nothing changed yet but with formatting appiled
2026-04-01 16:10:18 +04:00

79 lines
1.9 KiB
Plaintext

plugins {
`java-library`
`maven-publish`
alias(libs.plugins.blossom)
alias(libs.plugins.indragit)
}
version = property("redisbungee-version").toString()
group = property("redisbungee-group").toString()
dependencies {
api(libs.guava)
api(libs.jedis)
api(libs.okhttp)
api(libs.configurateV3)
api(libs.caffeine)
}
description = "RedisBungee interfaces"
sourceSets {
main {
blossom {
javaSources {
property("version", version.toString())
property("git", indraGit.commit().get().name)
}
}
}
}
java {
withJavadocJar()
withSourcesJar()
}
tasks {
// thanks again for paper too
withType<Javadoc> {
val options = options as StandardJavadocDocletOptions
options.use()
options.isDocFilesSubDirs = true
val jedisVersion = libs.jedis.get().version
val configurateVersion = libs.configurateV3.get().version
val guavaVersion = libs.guava.get().version
val adventureVersion = libs.adventure.api.get().version
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
"https://javadoc.io/doc/com.github.ben-manes.caffeine/caffeine",
"https://jd.advntr.dev/api/$adventureVersion"
)
}
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"])
}
}
}