Skip to content

Commit

Permalink
Set Javadoc doclet options during task configuration
Browse files Browse the repository at this point in the history
This task's doclet options are inputs to the task.  We should set them
during task configuration time for more precise caching.
  • Loading branch information
liblit committed Sep 10, 2023
1 parent 0f12a04 commit 750e0cc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cast/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ artifacts.add(
tasks.named<Javadoc>("javadoc") {
inputs.files(castJsPackageListDirectory)

inputs.property("extdocURL", castJsJavadocDestinationDirectory.singleFile)
inputs.property("packagelistLoc", castJsPackageListDirectory.singleFile)
doFirst {
(options as StandardJavadocDocletOptions).linksOffline(
inputs.properties["extdocURL"].toString(), inputs.properties["packagelistLoc"].toString())
}
val extdocURL = castJsJavadocDestinationDirectory.singleFile
val packagelistLoc = castJsPackageListDirectory.singleFile
inputs.property("extdocURL", extdocURL)
inputs.property("packagelistLoc", packagelistLoc)
(options as StandardJavadocDocletOptions).linksOffline(
extdocURL.toString(), packagelistLoc.toString())
}

tasks.named<Test>("test") {
Expand Down

0 comments on commit 750e0cc

Please sign in to comment.