From 71287055b48486e63a560f93ba525350e41e9e45 Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel Date: Mon, 13 May 2024 02:43:47 +0400 Subject: [PATCH] fix javadocs x2 --- proxies/bungeecord/bungeecord-api/build.gradle.kts | 3 +-- proxies/velocity/velocity-api/build.gradle.kts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/proxies/bungeecord/bungeecord-api/build.gradle.kts b/proxies/bungeecord/bungeecord-api/build.gradle.kts index 1e657e2..8fd4840 100644 --- a/proxies/bungeecord/bungeecord-api/build.gradle.kts +++ b/proxies/bungeecord/bungeecord-api/build.gradle.kts @@ -23,14 +23,13 @@ java { tasks { withType { dependsOn(project(":RedisBungee-API").getTasksByName("javadoc", false)) - val path = project(":RedisBungee-API").projectDir val options = options as StandardJavadocDocletOptions options.use() options.isDocFilesSubDirs = true options.links( "https://ci.md-5.net/job/BungeeCord/ws/api/target/apidocs/", // bungeecord api ) - val apiDocs = File(rootProject.projectDir, "$path/build/docs/javadoc") + val apiDocs = File(rootProject.projectDir, "api/build/docs/javadoc") options.linksOffline("https://ci.limework.net/ValioBungee/api/build/docs/javadoc", apiDocs.path) } compileJava { diff --git a/proxies/velocity/velocity-api/build.gradle.kts b/proxies/velocity/velocity-api/build.gradle.kts index e0c6e1c..df0db2e 100644 --- a/proxies/velocity/velocity-api/build.gradle.kts +++ b/proxies/velocity/velocity-api/build.gradle.kts @@ -30,14 +30,13 @@ java { tasks { withType { dependsOn(project(":RedisBungee-API").getTasksByName("javadoc", false)) - val path = project(":RedisBungee-API").projectDir val options = options as StandardJavadocDocletOptions options.use() options.isDocFilesSubDirs = true options.links( "https://jd.papermc.io/velocity/3.0.0/", // velocity api ) - val apiDocs = File(rootProject.projectDir, "$path/build/docs/javadoc") + val apiDocs = File(rootProject.projectDir, "api/build/docs/javadoc") options.linksOffline("https://ci.limework.net/ValioBungee/api/build/docs/javadoc", apiDocs.path) } compileJava {