From 4d297cc8297daa681cb0fba7c7bd7f72b33d5b19 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 27 Jan 2022 13:26:27 +0100 Subject: [PATCH] Separate linked javadocs per module (#3476) * docs: Separate javadocs per module * docs: Read javadoc version from Gradle version catalog --- Bukkit/build.gradle.kts | 10 +++++----- Core/build.gradle.kts | 10 ++++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Bukkit/build.gradle.kts b/Bukkit/build.gradle.kts index 0207c2a6a..8d925d183 100644 --- a/Bukkit/build.gradle.kts +++ b/Bukkit/build.gradle.kts @@ -95,11 +95,11 @@ tasks.named("shadowJar") { tasks { withType { val opt = options as StandardJavadocDocletOptions - opt.links("https://papermc.io/javadocs/paper/1.17/") - opt.links("https://docs.enginehub.org/javadoc/com.sk89q.worldedit/worldedit-core/7.2.7/") - opt.links("https://docs.enginehub.org/javadoc/com.sk89q.worldedit/worldedit-bukkit/7.2.7/") - opt.links("https://jd.adventure.kyori.net/api/4.9.3/") - opt.links("https://google.github.io/guice/api-docs/5.0.1/javadoc/") + opt.links("https://papermc.io/javadocs/paper/1.18/") + opt.links("https://docs.enginehub.org/javadoc/com.sk89q.worldedit/worldedit-bukkit/" + libs.worldeditBukkit.get().versionConstraint.toString()) + opt.links("https://javadoc.io/doc/com.plotsquared/PlotSquared-Core/latest/") + opt.links("https://jd.adventure.kyori.net/api/" + libs.adventure.get().versionConstraint.toString()) + opt.links("https://google.github.io/guice/api-docs/" + libs.guice.get().versionConstraint.toString() + "/javadoc/") opt.links("https://checkerframework.org/api/") } } diff --git a/Core/build.gradle.kts b/Core/build.gradle.kts index c1fdea943..fa79fa3bb 100644 --- a/Core/build.gradle.kts +++ b/Core/build.gradle.kts @@ -54,3 +54,13 @@ tasks.processResources { ) } } + +tasks { + withType { + 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.adventure.kyori.net/api/" + libs.adventure.get().versionConstraint.toString()) + opt.links("https://google.github.io/guice/api-docs/" + libs.guice.get().versionConstraint.toString() + "/javadoc/") + opt.links("https://checkerframework.org/api/") + } +}