This repository has been archived by the owner on Jun 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
80 lines (63 loc) · 2.3 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
buildscript {
ext {
springBootVersion = '1.5.9.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply from: 'build-tools/quality/checkstyle/checkstyle.gradle'
apply from: 'build-tools/quality/pmd/pmd.gradle'
apply from: 'build-tools/quality/findbugs/findbugs.gradle'
apply from: 'build-tools/quality/jacoco/jacoco.gradle'
group = projectGroup
version = projectVersion
sourceCompatibility = javaVersion
repositories {
mavenCentral()
}
sourceSets {
integrationTest {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
srcDir file('src/integration-test/java')
}
resources.srcDir file('src/integration-test/resources')
}
}
configurations {
integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime
}
task integrationTest(type: Test) {
testClassesDir = sourceSets.integrationTest.output.classesDir
classpath = sourceSets.integrationTest.runtimeClasspath
outputs.upToDateWhen { false }
}
check.dependsOn integrationTest
integrationTest.mustRunAfter test
tasks.withType(Test) {
reports.html.destination = file("${reporting.baseDir}/${name}")
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-aop')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-security')
runtime('org.springframework.boot:spring-boot-devtools')
compile("com.nimbusds:nimbus-jose-jwt:$nimbusJoseJwtVersion")
compile("net.sf.dozer:dozer:$dozerVersion")
compile("io.springfox:springfox-swagger2:$swaggerVersion")
compile("io.springfox:springfox-swagger-ui:$swaggerUiVersion")
compileOnly('org.projectlombok:lombok')
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile('org.springframework.security:spring-security-test')
testCompile('org.hamcrest:hamcrest-library')
integrationTestCompile('org.springframework.boot:spring-boot-starter-test')
integrationTestCompile('org.springframework.security:spring-security-test')
}