-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (85 loc) · 2.52 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
88
89
90
91
92
93
94
95
96
97
98
99
100
plugins {
id 'java'
id 'build-dashboard'
id 'project-report'
id 'jacoco'
id 'org.unbroken-dome.test-sets'
id "org.springframework.boot"
id "io.spring.dependency-management"
}
group 'bao.doan'
version '1.0-SNAPSHOT'
apply plugin: "org.springframework.boot"
allprojects {
apply plugin: "java"
apply plugin: "jacoco"
apply plugin: "build-dashboard"
apply plugin: "project-report"
apply plugin: "org.unbroken-dome.test-sets"
repositories {
mavenCentral()
}
dependencies {
compileOnly "org.projectlombok:lombok:$lombokVersion"
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
testCompileOnly "org.projectlombok:lombok:$lombokVersion"
testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
testImplementation("org.junit.jupiter:junit-jupiter-params:$junitJupiterVersion")
testImplementation("org.assertj:assertj-core:$assertjVersion")
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion"
compileOnly "org.mapstruct:mapstruct:$mapstructVersion"
annotationProcessor "org.mapstruct:mapstruct-processor:$mapstructVersion"
}
tasks.withType(JavaCompile) {
if (!project.hasProperty("suppressWarnings")) {
options.compilerArgs += ["-Werror", "-Xlint:all,-processing", "-parameters"]
}
}
tasks.withType(Test) {
useJUnitPlatform()
}
jacocoTestReport {
dependsOn test
}
test {
finalizedBy jacocoTestReport
}
tasks.withType(Test) {
systemProperty "java.util.logging.config.file", "$projectDir/config/loggin.properties"
}
testSets {
integrationTest
}
check {
dependsOn += jacocoTestCoverageVerification
dependsOn += integrationTest
}
jacoco {
toolVersion = "0.8.8"
}
jacocoTestCoverageVerification {
dependsOn jacocoTestReport
violationRules {
rule {
limit {
minimum = 0.00
}
}
}
}
test {
useJUnitPlatform()
}
}
dependencies {
implementation(project(":app"))
implementation(project(":product-domain"))
implementation(project(":product-usecase"))
implementation(project(":product-persistence"))
implementation(project(":product-api"))
}
wrapper {
gradleVersion = "7.6.1"
distributionType = "ALL"
}