Enable caching of :asciidoctor gradle task
This commit is contained in:
committed by
Steve Riesenberg
parent
8d54f16a13
commit
2f7c4f62d9
@@ -120,6 +120,9 @@ public class SpringAsciidoctorPlugin implements Plugin<Project> {
|
||||
// Not using intermediateWorkDir.
|
||||
// See https://github.com/asciidoctor/asciidoctor-gradle-plugin/issues/523
|
||||
resourcesSrcDirSpec.include("images/*.png", "css/**", "js/**", "**/*.java");
|
||||
// This exclusion is required to allow cacheability of :spring-authorization-server-docs:asciidoctor
|
||||
// The whole docs/src/docs/asciidoc folder is being passed as a task input
|
||||
resourcesSrcDirSpec.exclude("**/examples/build/**");
|
||||
});
|
||||
});
|
||||
if (asciidoctorTask instanceof AsciidoctorTask) {
|
||||
|
||||
Reference in New Issue
Block a user