Skip to content

Commit

Permalink
Replace explicit dependsOn
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Jan 29, 2024
1 parent 9d0cb54 commit 9afce09
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@ abstract class JavadocLinksPlugin : Plugin<Project> {
dependenciesFrom(linkDependencies)
}

val linksOutput = linksFileTask.flatMap { it.linksFile }
target.tasks.maybeConfigure<Javadoc>(javadocTaskName) {
val opts = options as StandardJavadocDocletOptions
dependsOn(linksFileTask)
opts.linksFile(linksFileTask.get().linksFile.get().asFile)
inputs.file(linksOutput)
.withPropertyName("javadocLinksFile")
doFirst {
val opts = options as StandardJavadocDocletOptions
opts.linksFile(linksOutput.get().asFile)
}
}
}
}
Expand Down

0 comments on commit 9afce09

Please sign in to comment.