From afb36d98c74f686ef2692ef0b6408263eca6f6d8 Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Sun, 15 Sep 2024 14:22:31 +0200 Subject: [PATCH] Read Adventure version from version catalogue Signed-off-by: Alexander Brandes --- Bukkit/build.gradle.kts | 2 +- Core/build.gradle.kts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Bukkit/build.gradle.kts b/Bukkit/build.gradle.kts index b5bc5d7b4..a254af980 100644 --- a/Bukkit/build.gradle.kts +++ b/Bukkit/build.gradle.kts @@ -104,7 +104,7 @@ tasks { opt.links("https://jd.papermc.io/paper/1.20/") opt.links("https://docs.enginehub.org/javadoc/com.sk89q.worldedit/worldedit-bukkit/" + libs.worldeditBukkit.get().versionConstraint.toString()) opt.links("https://intellectualsites.github.io/plotsquared-javadocs/core/") - opt.links("https://jd.advntr.dev/api/4.14.0/") + opt.links("https://jd.advntr.dev/api/" + libs.adventureApi.get().versionConstraint.toString()) opt.links("https://google.github.io/guice/api-docs/" + libs.guice.get().versionConstraint.toString() + "/javadoc/") opt.links("https://checkerframework.org/api/") opt.isLinkSource = true diff --git a/Core/build.gradle.kts b/Core/build.gradle.kts index 70563aa2a..5b7367be0 100644 --- a/Core/build.gradle.kts +++ b/Core/build.gradle.kts @@ -68,8 +68,8 @@ tasks { val isRelease = if (rootProject.version.toString().endsWith("-SNAPSHOT")) "TODO" else rootProject.version.toString() val opt = options as StandardJavadocDocletOptions opt.links("https://docs.enginehub.org/javadoc/com.sk89q.worldedit/worldedit-core/" + libs.worldeditCore.get().versionConstraint.toString()) - opt.links("https://jd.advntr.dev/api/4.14.0/") - opt.links("https://jd.advntr.dev/text-minimessage/4.14.0/") + opt.links("https://jd.advntr.dev/api/" + libs.adventureApi.get().versionConstraint.toString()) + opt.links("https://jd.advntr.dev/text-minimessage/" + libs.adventureApi.get().versionConstraint.toString()) opt.links("https://google.github.io/guice/api-docs/" + libs.guice.get().versionConstraint.toString() + "/javadoc/") opt.links("https://checkerframework.org/api/") opt.isLinkSource = true