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 ea6e683
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ 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")
opts.linksFile(linksOutput.get().asFile)
}
}
}
Expand Down

0 comments on commit ea6e683

Please sign in to comment.