Files
spring-restdocs/spring-restdocs-restassured/build.gradle
2017-03-04 20:40:42 +00:00

29 lines
898 B
Groovy

description = 'Spring REST Docs REST Assured'
boolean isPlatformUsingBootOneFour() {
def bootVersion = dependencyManagement.springIoTestRuntime.managedVersions['org.springframework.boot:spring-boot']
bootVersion.startsWith('1.4')
}
dependencies {
compile project(':spring-restdocs-core')
compile 'com.jayway.restassured:rest-assured'
testCompile 'org.apache.tomcat.embed:tomcat-embed-core:8.5.11'
testCompile 'org.mockito:mockito-core'
testCompile 'org.hamcrest:hamcrest-library'
testCompile project(path: ':spring-restdocs-core', configuration: 'testArtifacts')
}
test {
jvmArgs "-javaagent:${configurations.jacoco.asPath}=destfile=${buildDir}/jacoco.exec,includes=org.springframework.restdocs.*"
}
afterEvaluate {
if (project.hasProperty('platformVersion') && platformUsingBootOneFour) {
dependencies {
springIoTestRuntime 'org.springframework.boot:spring-boot-test'
}
}
}