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
20 lines
505 B
Groovy
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)
|
|
} |