Test documented build script snippets when they change

Closes gh-29684
This commit is contained in:
Andy Wilkinson 2022-02-09 11:33:40 +00:00
parent 3a5bf49e24
commit 48fe1513fe
1 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,10 @@ tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) {
}
}
tasks.named('test') {
inputs.dir('src/docs/gradle').withPathSensitivity(PathSensitivity.RELATIVE).withPropertyName('buildScripts')
}
asciidoctor {
sources {
include "index.adoc"