Open
Description
When you use REST Docs with Gradle there are a few things that need to be configured:
snippetsDir
extra property- Additional output directory on the
test
task that points to the snippets directory
When you're also using Asciidoctor the following also needs to be configured:
spring-restdocs-asciidoctor
extension- Additional input directory on the
asciidoctor
task that points to the snippets directory - A dependency on the
test
task from theasciidoctor
task
This configuration could be encapsulated in a plugin that applies these conventions, or a variant of them, automatically.