You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<2> Declare the `asciidoctorExt` configuration for dependencies that extend Asciidoctor.
105
-
<3> Add a dependency on `spring-restdocs-asciidoctor` in the `asciidoctorExt` configuration.
108
+
<2> Configure the Asciidoctor plugin to use the required version of AsciidoctorJ.
109
+
<3> Declare the `asciidoctorExt` configuration for dependencies that extend Asciidoctor.
110
+
<4> Add a dependency on `spring-restdocs-asciidoctor` in the `asciidoctorExt` configuration.
106
111
This will automatically configure the `snippets` attribute for use in your `.adoc` files to point to `build/generated-snippets`.
107
112
It will also allow you to use the `operation` block macro.
108
113
It requires AsciidoctorJ 3.0.
109
-
<4> Add a dependency on `spring-restdocs-mockmvc` in the `testImplementation` configuration.
114
+
<5> Add a dependency on `spring-restdocs-mockmvc` in the `testImplementation` configuration.
110
115
If you want to use `WebTestClient` rather than MockMvc, add a dependency on `spring-restdocs-webtestclient` instead.
111
-
<5> Configure a `snippetsDir` property that defines the output location for generated snippets.
112
-
<6> Make Gradle aware that running the `test` task will write output to the snippetsDir. This is required for https://docs.gradle.org/current/userguide/incremental_build.html[incremental builds].
113
-
<7> Configure the `asciidoctor` task.
114
-
<8> Make Gradle aware that running the task will read input from the snippetsDir. This is required for https://docs.gradle.org/current/userguide/incremental_build.html[incremental builds].
115
-
<9> Configure the use of the `asciidoctorExt` configuration for extensions.
116
-
<10> Make the task depend on the `test` task so that the tests are run before the documentation is created.
116
+
<6> Configure a `snippetsDir` property that defines the output location for generated snippets.
117
+
<7> Make Gradle aware that running the `test` task will write output to the snippetsDir. This is required for https://docs.gradle.org/current/userguide/incremental_build.html[incremental builds].
118
+
<8> Configure the `asciidoctor` task.
119
+
<9> Make Gradle aware that running the task will read input from the snippetsDir. This is required for https://docs.gradle.org/current/userguide/incremental_build.html[incremental builds].
120
+
<10> Configure the use of the `asciidoctorExt` configuration for extensions.
121
+
<11> Make the task depend on the `test` task so that the tests are run before the documentation is created.
0 commit comments