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 --- juick-server/build.gradle | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) (limited to 'juick-server/build.gradle') diff --git a/juick-server/build.gradle b/juick-server/build.gradle index bcad2f41..3a60aad7 100644 --- a/juick-server/build.gradle +++ b/juick-server/build.gradle @@ -4,14 +4,12 @@ buildscript { } } -apply plugin: 'java' apply plugin: 'war' -apply plugin: 'org.springframework.boot' -apply plugin: 'io.spring.dependency-management' dependencies { compile project(':juick-server-jdbc') compile project(':juick-server-web') + compile ('org.springframework.boot:spring-boot-starter-security') providedRuntime("org.springframework.boot:spring-boot-starter-tomcat") compile 'io.springfox:springfox-swagger2:2.8.0' @@ -26,30 +24,14 @@ dependencies { compile 'com.rometools:rome:1.9.0' compile 'com.rometools:rome-modules:1.9.0' - testCompile project(path: ':juick-core', configuration: 'testArtifacts') - testCompile project(path: ':juick-server-web', configuration: 'testArtifacts') - testCompile project(path: ':juick-server-jdbc', configuration: 'testArtifacts') + testCompile("org.springframework.boot:spring-boot-starter-test") + // https://mvnrepository.com/artifact/org.springframework.security/spring-security-test + testCompile group: 'org.springframework.security', name: 'spring-security-test', version: '5.0.3.RELEASE' + testRuntime 'com.jayway.jsonpath:json-path:2.4.0' } -compileJava.options.encoding = 'UTF-8' - bootJar { launchScript() -} - -configurations { - all*.exclude module: 'commons-logging' -} - -configurations { - testArtifacts.extendsFrom testRuntime -} -task testJar(type: Jar) { - classifier "test" - from sourceSets.test.output -} -artifacts { - testArtifacts testJar -} +} \ No newline at end of file -- cgit v1.2.3