Make Asciidoctor tasks run when Java examples are updated

Closes gh-25892
pull/26093/head
Andy Wilkinson 4 years ago
parent 1b91c1706e
commit 76f74482d4

@ -128,6 +128,7 @@ class AsciidoctorConventions {
syncDocumentationSource.setDestinationDir(syncedSource); syncDocumentationSource.setDestinationDir(syncedSource);
syncDocumentationSource.from("src/docs/"); syncDocumentationSource.from("src/docs/");
asciidoctorTask.dependsOn(syncDocumentationSource); asciidoctorTask.dependsOn(syncDocumentationSource);
asciidoctorTask.getInputs().dir(syncedSource);
asciidoctorTask.setSourceDir(project.relativePath(new File(syncedSource, "asciidoc/"))); asciidoctorTask.setSourceDir(project.relativePath(new File(syncedSource, "asciidoc/")));
return syncDocumentationSource; return syncDocumentationSource;
} }

Loading…
Cancel
Save