-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
87 lines (79 loc) · 2.31 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
81
82
83
84
85
86
87
plugins {
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'org.springframework.boot' version '2.2.0.RELEASE'
id "io.freefair.lombok" version "4.1.4"
id "com.github.johnrengelman.shadow" version "5.1.0"
id "java"
id "idea"
}
repositories {
mavenCentral()
jcenter()
maven { url 'https://repo.spring.io/milestone' }
maven { url "https://repo.spring.io/release" }
maven { url 'https://repo.spring.io/snapshot' }
}
allprojects{
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'java'
apply plugin: "io.freefair.lombok"
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
compileOnly {
extendsFrom annotationProcessor
}
}
group 'org.learn'
version '0.0.1-SNAPSHOT'
sourceCompatibility = 11
targetCompatibility = 11
repositories {
mavenCentral()
jcenter()
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://repo.spring.io/snapshot' }
}
dependencies {
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
}
dependencies {
developmentOnly 'org.springframework.boot:spring-boot-devtools'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
compile project(':pet-clinic-web')
testCompile project(':pet-clinic-web')
}
jar {
enabled = true
}
springBoot {
mainClassName = 'org.learn.petclinic.PetClinicApplication'
}
test {
dependsOn 'cleanTest'
useJUnitPlatform()
println("Testing..............")
testLogging {
events 'PASSED', 'FAILED', 'SKIPPED'
}
reports {
junitXml.enabled = false
html.enabled = true
}
afterSuite { desc, result ->
if (!desc.parent)
println("${result.resultType} " +
"(${result.testCount} tests, " +
"${result.successfulTestCount} successes, " +
"${result.failedTestCount} failures, " +
"${result.skippedTestCount} skipped)")
}
}