buildscript {
ext {
springBootVersion = '1.4.4.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.mybatis.spring.boot:mybatis-spring-boot-starter:1.2.0',
'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'
exclude module: 'h2'
exclude module: 'tomcat-jdbc'
}
}
[
'org.springframework.boot:spring-boot-starter-test'
].each { dep ->
testCompile(dep) {
exclude module: 'spring-boot-starter-logging'
exclude module: 'logback-classic'
}
}
compileOnly('org.postgresql:postgresql:9.3-1104-jdbc41')
providedRuntime('org.springframework.boot:spring-boot-starter-tomcat')
compile('org.projectlombok:lombok:1.16.12')
compile('org.springframework.boot:spring-boot-starter-log4j2')
providedRuntime('org.apache.tomcat:tomcat-dbcp:8.0.39')
compileOnly('org.apache.tomcat:tomcat-dbcp:8.0.39')
compile('com.google.code.gson:gson:2.6.1')
compile('org.thymeleaf:thymeleaf:3.0.2.RELEASE')
compile('org.thymeleaf:thymeleaf-spring4:3.0.2.RELEASE')
}
|