Make checkBrokenLinks cacheable

This commit is contained in:
Jerome Prinet 2021-10-18 16:13:15 +02:00 committed by Dawid Weiss
parent 1a38cac68e
commit b3e59232f5
1 changed files with 4 additions and 0 deletions

View File

@ -31,13 +31,17 @@ configure(project(':lucene:documentation')) {
check.dependsOn checkBrokenLinks
}
@CacheableTask
class CheckBrokenLinksTask extends DefaultTask {
// wraps input directory location in DirectoryProperty so as to lazily evaluate 'docroot' property
// (see gradle/documentation/documentation.gradle)
@InputDirectory
@PathSensitive(PathSensitivity.RELATIVE)
@IgnoreEmptyDirectories
final DirectoryProperty docsDir = project.objects.directoryProperty()
@InputFile
@PathSensitive(PathSensitivity.RELATIVE)
File validationScript
@OutputFile