30 lines
766 B
Groovy
30 lines
766 B
Groovy
plugins {
|
|
id 'org.asciidoctor.convert' version '1.5.3'
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
url 'https://repo.spring.io/release'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
asciidoctor 'io.spring.asciidoctor:spring-asciidoctor-extensions:0.1.1.RELEASE'
|
|
testCompile project(':spring-restdocs-mockmvc')
|
|
testCompile project(':spring-restdocs-restassured')
|
|
testCompile 'io.rest-assured:rest-assured'
|
|
testCompile 'javax.validation:validation-api'
|
|
testCompile 'junit:junit'
|
|
testCompile 'org.testng:testng:6.9.10'
|
|
}
|
|
|
|
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)
|
|
} |