From f6e1ca65bf18c17172074daeca9310752754c845 Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel Date: Sun, 10 Sep 2023 19:29:11 +0400 Subject: [PATCH] make varable for depeneds, remove javadocs for adventure from implementations javadocs --- RedisBungee-API/build.gradle.kts | 25 +++++++++++++++---------- RedisBungee-Bungee/build.gradle.kts | 1 - RedisBungee-Velocity/build.gradle.kts | 1 - 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/RedisBungee-API/build.gradle.kts b/RedisBungee-API/build.gradle.kts index 98eb1ff..8a8e48f 100644 --- a/RedisBungee-API/build.gradle.kts +++ b/RedisBungee-API/build.gradle.kts @@ -15,26 +15,28 @@ repositories { val jedisVersion = "5.1.2" val configurateVersion = "3.7.3" val guavaVersion = "31.1-jre" - +val okHttpVersion = "2.7.5" +val caffeineVersion = "3.1.8" +val adventureVersion = "4.14.0" dependencies { api("com.google.guava:guava:$guavaVersion") api("redis.clients:jedis:$jedisVersion") - api("com.squareup.okhttp:okhttp:2.7.5") + api("com.squareup.okhttp:okhttp:$okHttpVersion") api("org.spongepowered:configurate-yaml:$configurateVersion") - api("com.github.ben-manes.caffeine:caffeine:3.1.8") + api("com.github.ben-manes.caffeine:caffeine:$caffeineVersion") - 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") + api("net.kyori:adventure-api:$adventureVersion") + api("net.kyori:adventure-text-serializer-gson:$adventureVersion") + api("net.kyori:adventure-text-serializer-legacy:$adventureVersion") + api("net.kyori:adventure-text-serializer-plain:$adventureVersion") + api("net.kyori:adventure-text-minimessage:$adventureVersion") // tests testImplementation("junit:junit:4.13.2") } -description = "RedisBungee interafaces" +description = "RedisBungee interfaces" blossom { replaceToken("@version@", "$version") @@ -64,7 +66,10 @@ tasks { 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://guava.dev/releases/$guavaVersion/api/docs/", // guava + "https://javadoc.io/doc/com.github.ben-manes.caffeine/caffeine", + "https://jd.advntr.dev/api/$adventureVersion" + ) } diff --git a/RedisBungee-Bungee/build.gradle.kts b/RedisBungee-Bungee/build.gradle.kts index 5ddd158..08988ab 100644 --- a/RedisBungee-Bungee/build.gradle.kts +++ b/RedisBungee-Bungee/build.gradle.kts @@ -38,7 +38,6 @@ tasks { options.isDocFilesSubDirs = true options.links( "https://ci.md-5.net/job/BungeeCord/ws/api/target/apidocs/", // bungeecord api - "https://jd.advntr.dev/api/4.14.0" ) val apiDocs = File(rootProject.projectDir, "RedisBungee-API/build/docs/javadoc") options.linksOffline("https://ci.limework.net/RedisBungee/RedisBungee-API/build/docs/javadoc", apiDocs.path) diff --git a/RedisBungee-Velocity/build.gradle.kts b/RedisBungee-Velocity/build.gradle.kts index 36994d2..d6ffe4d 100644 --- a/RedisBungee-Velocity/build.gradle.kts +++ b/RedisBungee-Velocity/build.gradle.kts @@ -44,7 +44,6 @@ tasks { options.isDocFilesSubDirs = true options.links( "https://jd.papermc.io/velocity/3.0.0/", // velocity api - "https://jd.advntr.dev/api/4.14.0" ) val apiDocs = File(rootProject.projectDir, "RedisBungee-API/build/docs/javadoc") options.linksOffline("https://ci.limework.net/RedisBungee/RedisBungee-API/build/docs/javadoc", apiDocs.path)