2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-11-09 14:38:01 +00:00

fix javadocs x2

This commit is contained in:
mohammed jasem alaajel 2024-05-13 02:43:47 +04:00
parent 8b48736bc1
commit 71287055b4
Signed by: ham1255
GPG Key ID: EF343502046229F4
2 changed files with 2 additions and 4 deletions

View File

@ -23,14 +23,13 @@ java {
tasks { tasks {
withType<Javadoc> { withType<Javadoc> {
dependsOn(project(":RedisBungee-API").getTasksByName("javadoc", false)) dependsOn(project(":RedisBungee-API").getTasksByName("javadoc", false))
val path = project(":RedisBungee-API").projectDir
val options = options as StandardJavadocDocletOptions val options = options as StandardJavadocDocletOptions
options.use() options.use()
options.isDocFilesSubDirs = true options.isDocFilesSubDirs = true
options.links( options.links(
"https://ci.md-5.net/job/BungeeCord/ws/api/target/apidocs/", // bungeecord api "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) options.linksOffline("https://ci.limework.net/ValioBungee/api/build/docs/javadoc", apiDocs.path)
} }
compileJava { compileJava {

View File

@ -30,14 +30,13 @@ java {
tasks { tasks {
withType<Javadoc> { withType<Javadoc> {
dependsOn(project(":RedisBungee-API").getTasksByName("javadoc", false)) dependsOn(project(":RedisBungee-API").getTasksByName("javadoc", false))
val path = project(":RedisBungee-API").projectDir
val options = options as StandardJavadocDocletOptions val options = options as StandardJavadocDocletOptions
options.use() options.use()
options.isDocFilesSubDirs = true options.isDocFilesSubDirs = true
options.links( options.links(
"https://jd.papermc.io/velocity/3.0.0/", // velocity api "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) options.linksOffline("https://ci.limework.net/ValioBungee/api/build/docs/javadoc", apiDocs.path)
} }
compileJava { compileJava {