Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
75 lines (65 sloc) 2.06 KB
buildscript {
ext {
springBootVersion = '2.0.3.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
repositories {
jcenter()
}
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'war'
apply plugin: 'org.springframework.boot'
configurations {
//Logback causing spring boot errors
all*.exclude group: 'ch.qos.logback'
//Making sure we don't clash on the classpath as two controllers would be loaded
all*.exclude group: 'org.springframework', module: 'spring-webflux'
all*.exclude group: 'io.springfox', module: 'springfox-spring-webflux'
}
ext['groovy.version'] = '2.5.0'
ext {
limits = [
'instruction': 89.5,
'line' : 85,
'complexity' : 80,
'method' : 80,
'branch' : 85,
'class' : 94
]
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-data-rest")
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile("com.h2database:h2")
testCompile libs.test
testCompile "org.skyscreamer:jsonassert:${jsonAssert}"
testCompile("org.springframework.boot:spring-boot-starter-test")
compile project(':springfox-swagger1')
compile project(':springfox-swagger2')
compile project(':springfox-data-rest')
compile project(':springfox-petstore')
compile project(':springfox-bean-validators')
compile project(':springfox-spring-web').sourceSets.test.output
compile project(':springfox-spring-webmvc').sourceSets.test.output
compile(project(path: ':springfox-swagger-ui')) {
exclude group: 'org.springframework', module: 'spring-web'
}
}
// tag::update-contract-tests[]
// NOTE: Uncomment to bulk update contracts
//test {
// systemProperty("contract.tests.root", "$projectDir/src/test/resources")
// systemProperty("contract.tests.update", true)
//}
// tag::update-contract-tests[]