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) } }