aboutsummaryrefslogtreecommitdiff
path: root/juick-server/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 /juick-server/build.gradle
parent55ec9f370d76a76aa33e290a093995d576e70bdb (diff)
boot: simplify test configuration
Diffstat (limited to 'juick-server/build.gradle')
-rw-r--r--juick-server/build.gradle30
1 files changed, 6 insertions, 24 deletions
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