Skip to content

Commit

Permalink
build: make javadoc task less prone to spurious changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kris7t committed Jul 19, 2024
1 parent 0647027 commit 16e719c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ fun collectDependentProjectsTransitively(dependentProject: Project, dependentPro

gradle.projectsEvaluated {
tasks.javadoc {
val dependentProjects = HashSet<Project>()
val dependentProjects = LinkedHashSet<Project>()
collectDependentProjectsTransitively(project, dependentProjects)
val links = ArrayList<JavadocOfflineLink>()
for (dependentProject in dependentProjects) {
for (dependentProject in dependentProjects.sortedBy { it.name }) {
dependsOn(dependentProject.tasks.javadoc)
val javadocDir = dependentProject.layout.buildDirectory.map { it.dir("docs/javadoc") }
inputs.dir(javadocDir)
Expand Down

0 comments on commit 16e719c

Please sign in to comment.