From ef9bb70fa1fe3744e971837eb78c6c004cd1e989 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 15 Mar 2018 23:24:13 +0300 Subject: boot: simplify test configuration --- build.gradle | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'build.gradle') 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" } -- cgit v1.2.3