2017-08-08 10:01:06 +07:00
|
|
|
buildscript {
|
|
|
|
ext {
|
2018-09-28 00:22:10 +07:00
|
|
|
springBootVersion = '2.0.5.RELEASE'
|
2017-08-08 10:01:06 +07:00
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'idea'
|
|
|
|
apply plugin: 'org.springframework.boot'
|
2018-05-10 13:49:55 +07:00
|
|
|
apply plugin: 'io.spring.dependency-management'
|
|
|
|
|
|
|
|
dependencyManagement {
|
|
|
|
imports {
|
|
|
|
mavenBom org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES
|
|
|
|
}
|
|
|
|
applyMavenExclusions = false
|
|
|
|
}
|
2017-08-08 10:01:06 +07:00
|
|
|
|
|
|
|
version = '0.0.1-SNAPSHOT'
|
2018-09-28 00:22:10 +07:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
2017-08-08 10:01:06 +07:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
2017-08-18 11:09:07 +07:00
|
|
|
tasks.withType(FindBugs) {
|
|
|
|
reports {
|
|
|
|
xml.enabled false
|
|
|
|
html.enabled true
|
|
|
|
}
|
|
|
|
}
|
2017-08-08 10:01:06 +07:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile('org.springframework.boot:spring-boot-starter-data-jpa')
|
|
|
|
compile('org.flywaydb:flyway-core')
|
|
|
|
compile('org.springframework.boot:spring-boot-starter-hateoas')
|
2018-05-10 13:49:55 +07:00
|
|
|
compile('org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.2')
|
2017-08-08 10:01:06 +07:00
|
|
|
compile('org.springframework.boot:spring-boot-starter-web')
|
2018-09-28 00:22:10 +07:00
|
|
|
compile('io.jsonwebtoken:jjwt:0.9.1')
|
2017-08-08 20:14:14 +07:00
|
|
|
compile('org.springframework.boot:spring-boot-starter-security')
|
2018-09-28 00:22:10 +07:00
|
|
|
compile('joda-time:joda-time:2.10')
|
2017-08-08 20:14:14 +07:00
|
|
|
compileOnly('org.projectlombok:lombok')
|
2017-08-08 10:01:06 +07:00
|
|
|
runtime('com.h2database:h2')
|
2018-09-28 00:22:10 +07:00
|
|
|
testCompile 'io.rest-assured:rest-assured:3.1.1'
|
|
|
|
testCompile 'io.rest-assured:spring-mock-mvc:3.1.1'
|
2018-05-10 13:49:55 +07:00
|
|
|
testCompile 'org.springframework.security:spring-security-test'
|
2017-08-08 10:01:06 +07:00
|
|
|
testCompile('org.springframework.boot:spring-boot-starter-test')
|
|
|
|
testCompile('org.springframework.restdocs:spring-restdocs-mockmvc')
|
2018-05-10 13:49:55 +07:00
|
|
|
testCompile('org.mybatis.spring.boot:mybatis-spring-boot-starter-test:1.3.2')
|
2017-08-08 10:01:06 +07:00
|
|
|
}
|