forked from celinegilet/happy-town
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
80 lines (68 loc) · 2.48 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
plugins {
id "java"
id "application"
id "org.springframework.boot" version "2.1.4.RELEASE"
}
ext {
assertjVersion = '3.12.2'
dumbsterVersion = '1.6'
h2Version = '1.4.199'
junitVersion = '5.4.1'
logbackVersion = '1.2.3'
lombokVersion = '1.18.6'
mailVersion = '1.4.7'
mockitoVersion = '2.27.0'
springBootVersion = '2.1.4.RELEASE'
swaggerVersion = '2.9.2'
}
group = 'com.happytown'
version = '1.0.0'
sourceCompatibility = '11'
mainClassName= 'com.happytown.Application'
repositories {
mavenCentral()
}
dependencies {
// Spring
implementation "org.springframework.boot:spring-boot-starter:${springBootVersion}"
implementation "org.springframework.boot:spring-boot-starter-data-jpa:${springBootVersion}"
implementation "org.springframework.boot:spring-boot-starter-web:${springBootVersion}"
implementation "org.springframework.boot:spring-boot-starter-actuator:${springBootVersion}"
// Database
implementation "com.h2database:h2:${h2Version}"
// Mail
implementation "javax.mail:mail:${mailVersion}"
// Tools
implementation "io.springfox:springfox-swagger2:${swaggerVersion}"
implementation "io.springfox:springfox-swagger-ui:${swaggerVersion}"
implementation "ch.qos.logback:logback-classic:${logbackVersion}"
// Tests
testImplementation "org.springframework.boot:spring-boot-starter-test:${springBootVersion}"
testImplementation "org.mockito:mockito-core:${mockitoVersion}"
testImplementation "org.mockito:mockito-junit-jupiter:${mockitoVersion}"
testImplementation "org.assertj:assertj-core:${assertjVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
testImplementation "dumbster:dumbster:${dumbsterVersion}"
// Annotations
implementation "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
afterSuite { desc, result ->
if (!desc.parent) {
println "\nTest result: ${result.resultType}"
println "Test summary: ${result.testCount} tests, " +
"${result.successfulTestCount} succeeded, " +
"${result.failedTestCount} failed, " +
"${result.skippedTestCount} skipped"
}
}
}
wrapper {
gradleVersion = '5.3.1'
}