Files
spring-restdocs/docs/build.gradle
Andy Wilkinson 130b411e2a Add support for using REST Assured to generate documentation snippets
This commit adds a new module, spring-restdocs-restassured, that
can be used to generate documentation snippets when testing a service
with REST Assured.

Please refer to the updated reference documentation for details.

Thanks to Johan Haleby for making a change to REST Assured so that
path parameters could be documented.

Closes gh-102
2016-01-29 12:31:37 +00:00

20 lines
505 B
Groovy

plugins {
id 'org.asciidoctor.convert' version '1.5.2'
}
dependencies {
testCompile project(':spring-restdocs-mockmvc')
testCompile project(':spring-restdocs-restassured')
testCompile 'javax.validation:validation-api'
}
tasks.findByPath("artifactoryPublish")?.enabled = false
asciidoctor {
sources {
include 'index.adoc'
}
attributes 'revnumber': project.version,
'branch-or-tag': project.version.endsWith('SNAPSHOT') ? 'master': "v${project.version}"
inputs.files(sourceSets.test.java)
}