From 4aa7bc51bcd2834df546ecd519b74507ab7ff7e7 Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Wed, 11 Jan 2023 22:11:11 +0100 Subject: [PATCH] Include missing javadoc option --- Bukkit/build.gradle.kts | 2 ++ Core/build.gradle.kts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Bukkit/build.gradle.kts b/Bukkit/build.gradle.kts index 181f412d7..b40755efa 100644 --- a/Bukkit/build.gradle.kts +++ b/Bukkit/build.gradle.kts @@ -98,6 +98,7 @@ tasks.named("shadowJar") { tasks { withType { + val isRelease = if (rootProject.version.toString().endsWith("-SNAPSHOT")) "TODO" else rootProject.version.toString() val opt = options as StandardJavadocDocletOptions opt.links("https://jd.papermc.io/paper/1.18/") opt.links("https://docs.enginehub.org/javadoc/com.sk89q.worldedit/worldedit-bukkit/" + libs.worldeditBukkit.get().versionConstraint.toString()) @@ -110,5 +111,6 @@ tasks { opt.isUse = true opt.encoding("UTF-8") opt.keyWords() + opt.addStringOption("-since", isRelease) } } diff --git a/Core/build.gradle.kts b/Core/build.gradle.kts index 322ac6319..12d8dcb02 100644 --- a/Core/build.gradle.kts +++ b/Core/build.gradle.kts @@ -65,6 +65,7 @@ tasks.processResources { tasks { withType { + 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.adventure.kyori.net/api/4.9.3/") @@ -76,5 +77,6 @@ tasks { opt.isUse = true opt.encoding("UTF-8") opt.keyWords() + opt.addStringOption("-since", isRelease) } }