Skip to content

Commit

Permalink
Update allJavadocs task to auto-generate Javadoc links
Browse files Browse the repository at this point in the history
Included a new dependency in the allJavadocs task of the build.gradle.kts file. This enables automatic generation of Javadoc links for all projects, improving documentation quality and completeness. A change was also made to use 'allJavadocs' task for the Github Actions workflow, to produce combined Javadocs for all projects, thus streamlining maintenance and review.
  • Loading branch information
rainbowdashlabs committed Aug 21, 2023
1 parent 1651405 commit e6c21a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,11 @@ fun applyJavaDocOptions(options: MinimalJavadocOptions) {

tasks {
register<Javadoc>("allJavadocs") {
dependsOn(javadocJar)
applyJavaDocOptions(options)

destinationDir = file("${buildDir}/docs/javadoc")
val projects = project.rootProject.allprojects.filter { p -> publicProjects.contains(p.name) }
val projects = project.rootProject.allprojects
setSource(projects.map { p -> p.sourceSets.main.get().allJava })
classpath = files(projects.map { p -> p.sourceSets.main.get().compileClasspath })
}
Expand Down

0 comments on commit e6c21a2

Please sign in to comment.