buildscript {
ext {
springBootVersion = '1.3.8.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse-wtp'
apply plugin: 'spring-boot'
apply plugin: 'war'
war {
baseName = 'bootLabo'
version = '1.0'
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
configurations {
providedRuntime
}
dependencies {
[
'org.springframework.boot:spring-boot-starter-web',
'org.springframework.boot:spring-boot-starter-aop',
'org.springframework.boot:spring-boot-starter-thymeleaf',
'org.springframework.boot:spring-boot-configuration-processor'
].each { dep ->
compile(dep) {
exclude module: 'spring-boot-starter-logging'
exclude module: 'logback-classic'
}
}
[
'org.springframework.boot:spring-boot-starter-test'
].each { dep ->
testCompile(dep) {
exclude module: 'spring-boot-starter-logging'
exclude module: 'logback-classic'
}
}
runtime('org.postgresql:postgresql')
providedRuntime('org.springframework.boot:spring-boot-starter-tomcat')
compile('org.projectlombok:lombok:1.16.12')
compile('org.springframework.boot:spring-boot-starter-log4j2')
}
|