aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-15 23:24:13 +0300
committerGravatar Vitaly Takmazov2018-03-15 23:24:13 +0300
commitef9bb70fa1fe3744e971837eb78c6c004cd1e989 (patch)
treecee55dfcdcf9daf29c4835b200e1277a5d90b101 /build.gradle
parent55ec9f370d76a76aa33e290a093995d576e70bdb (diff)
boot: simplify test configuration
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle18
1 files changed, 6 insertions, 12 deletions
diff --git a/build.gradle b/build.gradle
index 89ffeb42..26bde551 100644
--- a/build.gradle
+++ b/build.gradle
@@ -5,6 +5,9 @@ allprojects {
maven { url "https://jitpack.io" }
maven { url "https://repository.apache.org/content/repositories/snapshots/" }
}
+ apply plugin: 'java'
+ apply plugin: 'org.springframework.boot'
+ apply plugin: 'io.spring.dependency-management'
apply plugin: 'com.github.ben-manes.versions'
dependencyUpdates.resolutionStrategy = {
componentSelection { rules ->
@@ -23,11 +26,6 @@ allprojects {
project.ext {
springBootVersion = '2.0.0.RELEASE'
jacksonVersion = '2.9.4'
- slf4jVersion = '1.7.25'
- logbackVersion = '1.2.3'
- junitVersion = "4.12"
- hamcrestVersion= "1.3"
- mockitoVersion = "2.+"
}
buildscript {
@@ -40,13 +38,13 @@ buildscript {
classpath 'com.github.ben-manes:gradle-versions-plugin:0.17.0'
}
}
-apply plugin: 'java'
-apply plugin: 'org.springframework.boot'
-apply plugin: 'io.spring.dependency-management'
repositories {
jcenter()
}
+dependencyManagement {
+ imports { mavenBom("org.springframework.boot:spring-boot-dependencies:${rootProject.springBootVersion}") }
+}
dependencies {
testCompile project(':juick-core')
testCompile project(':juick-www')
@@ -57,10 +55,6 @@ dependencies {
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}"
- testCompile "org.mockito:mockito-core:${mockitoVersion}"
testRuntime "mysql:mysql-connector-java:5.1.40"
testRuntime "org.postgresql:postgresql:42.2.1"
}