aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-02-24 16:54:28 +0300
committerGravatar Vitaly Takmazov2018-03-15 12:05:59 +0300
commitbebe7c159f00e6d5a83bb786824d5f32e4de9270 (patch)
tree151801a2e625d4952d12630da6a4aec6a37fb76d /build.gradle
parent70f481e2fe39a9029b1896d7b351293fd5de4ef8 (diff)
spring boot wip
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle22
1 files changed, 7 insertions, 15 deletions
diff --git a/build.gradle b/build.gradle
index f4128c78..89ffeb42 100644
--- a/build.gradle
+++ b/build.gradle
@@ -21,8 +21,7 @@ allprojects {
}
project.ext {
- springFrameworkVersion = '5.0.4.RELEASE'
- springSecurityVersion = '5.0.3.RELEASE'
+ springBootVersion = '2.0.0.RELEASE'
jacksonVersion = '2.9.4'
slf4jVersion = '1.7.25'
logbackVersion = '1.2.3'
@@ -37,20 +36,13 @@ buildscript {
jcenter()
}
dependencies {
- classpath 'org.akhikhl.gretty:gretty:+'
+ classpath "org.springframework.boot:spring-boot-gradle-plugin:2.0.0.RELEASE"
classpath 'com.github.ben-manes:gradle-versions-plugin:0.17.0'
}
}
apply plugin: 'java'
-apply plugin: 'org.akhikhl.gretty'
-
-farm {
- webapp ':juick-www'
- webapp ':juick-server'
-
-
- servletContainer = 'tomcat8'
-}
+apply plugin: 'org.springframework.boot'
+apply plugin: 'io.spring.dependency-management'
repositories {
jcenter()
@@ -62,9 +54,9 @@ dependencies {
testCompile "org.json:json:20180130"
testCompile "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
testCompile "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
- testCompile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${rootProject.jacksonVersion}"
- testCompile "org.springframework:spring-jdbc:${springFrameworkVersion}"
- testCompile "org.springframework:spring-test:${springFrameworkVersion}"
+ testCompile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${jacksonVersion}"
+ compile("org.springframework.boot:spring-boot-starter-jdbc")
+ compile("org.springframework.boot:spring-boot-starter-test")
testCompile "org.slf4j:slf4j-api:${slf4jVersion}"
testCompile "junit:junit:${junitVersion}"
testCompile "org.hamcrest:hamcrest-all:${hamcrestVersion}"