-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
98 lines (83 loc) · 2.33 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
plugins {
id 'org.springframework.boot' version '3.2.3' apply(false)
id 'io.spring.dependency-management' version '1.1.0' apply(false)
id 'org.asciidoctor.jvm.convert' version '3.3.2' apply(false)
id 'java-library'
id 'jacoco'
id "org.sonarqube" version "3.4.0.2513" apply(false)
}
allprojects {
apply plugin: 'java-library'
apply plugin: 'org.sonarqube'
group = 'com.woowacourse'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
repositories {
mavenCentral()
}
}
subprojects {
apply plugin: 'jacoco'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'org.asciidoctor.jvm.convert'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
asciidoctorExtensions
}
dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
bootJar {
enabled = false
}
jar {
enabled = true
}
test {
useJUnitPlatform()
finalizedBy 'jacocoTestReport'
}
jacocoTestReport {
reports {
html.enabled true
xml.enabled true
csv.enabled true
}
finalizedBy 'jacocoTestCoverageVerification'
}
jacocoTestCoverageVerification {
violationRules {
rule {
enabled = true
element = 'CLASS'
limit {
counter = 'LINE'
value = 'COVEREDRATIO'
minimum = 0.0
}
}
rule {
enabled = true;
element = 'BUNDLE'
limit {
counter = 'CLASS'
value = 'COVEREDRATIO'
minimum = 0.0
}
}
}
}
}
sonarqube {
properties {
property "sonar.projectKey", "The-Fellowship-of-the-matzip_mat.zip-back"
property "sonar.organization", "the-fellowship-of-the-matzip"
property "sonar.host.url", "https://sonarcloud.io"
property 'sonar.coverage.jacoco.xmlReportPaths', '${buildDir}/reports/jacoco/test/jacocoTestReport.xml'
}
}