-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·86 lines (70 loc) · 1.97 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
buildscript {
ext {
springBootVer = '3.2.0'
springDepManVer = '1.1.4'
}
}
plugins {
id 'application'
id 'jacoco'
id 'io.spring.dependency-management' version "${springDepManVer}"
id 'org.springframework.boot' version "${springBootVer}"
id 'com.github.dawnwords.jacoco.badge' version '0.2.4'
}
group = 'io.github.untalsanders.resume'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_22
}
repositories {
mavenCentral()
}
dependencies {
// Development
developmentOnly 'org.springframework.boot:spring-boot-devtools'
// Production
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.mapstruct:mapstruct:1.5.5.Final'
// Production (Runtime)
runtimeOnly 'com.h2database:h2'
// Annotations Processor
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.5.Final'
// Test
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'junit', module: 'junit'
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
application {
mainClassName = 'io.github.untalsanders.resume.ResumeApplication'
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
finalizedBy jacocoTestCoverageVerification
reports {
xml.required = true
html.required = true
}
}
jacocoTestCoverageVerification {
dependsOn jacocoTestReport
violationRules {
rule {
enabled = true
limit {
minimum = 0.80
}
}
}
}
jacocoBadgeGenSetting {
readmePath "$projectDir/README.md"
limit = ['instruction': 0, 'complexity': 0, 'line': 0, 'method': 0, 'class': 0]
}