@@ -2,6 +2,7 @@ plugins {
2
2
id ' java'
3
3
id ' org.springframework.boot' version ' 3.4.3'
4
4
id ' io.spring.dependency-management' version ' 1.1.7'
5
+ id ' jacoco'
5
6
}
6
7
7
8
group = ' org.sjsu'
@@ -27,26 +28,35 @@ ext {
27
28
set(' springCloudVersion' , " 2024.0.0" )
28
29
}
29
30
31
+ jacoco {
32
+ toolVersion = " 0.8.11"
33
+ }
34
+
35
+ jacocoTestReport {
36
+ reports {
37
+ html. required = true
38
+ xml. required = true
39
+ }
40
+ }
41
+
30
42
dependencies {
31
- implementation ' org.springframework.boot:spring-boot-starter-data-elasticsearch'
32
43
implementation ' org.springframework.boot:spring-boot-starter-data-jdbc'
33
- implementation ' org.springframework.boot:spring-boot-starter-data-mongodb'
34
- implementation ' org.springframework.boot:spring-boot-starter-data-redis'
35
44
implementation ' org.springframework.boot:spring-boot-starter-data-rest'
36
45
implementation ' org.springframework.boot:spring-boot-starter-jdbc'
37
46
implementation ' org.springframework.boot:spring-boot-starter-security'
38
47
implementation ' org.springframework.boot:spring-boot-starter-web'
39
- implementation ' org.apache.kafka:kafka-streams'
40
48
implementation ' org.springframework.cloud:spring-cloud-starter-gateway-mvc'
41
- implementation ' org.springframework.kafka:spring-kafka'
49
+ implementation ' io.jsonwebtoken:jjwt-api:0.11.5'
50
+ runtimeOnly ' io.jsonwebtoken:jjwt-impl:0.11.5'
51
+ runtimeOnly ' io.jsonwebtoken:jjwt-jackson:0.11.5'
52
+ implementation " com.twilio.sdk:twilio:10.6.10"
42
53
compileOnly ' org.projectlombok:lombok'
43
54
developmentOnly ' org.springframework.boot:spring-boot-devtools'
44
55
developmentOnly ' org.springframework.boot:spring-boot-docker-compose'
45
56
runtimeOnly ' com.mysql:mysql-connector-j'
46
57
annotationProcessor ' org.springframework.boot:spring-boot-configuration-processor'
47
58
annotationProcessor ' org.projectlombok:lombok'
48
59
testImplementation ' org.springframework.boot:spring-boot-starter-test'
49
- testImplementation ' org.springframework.kafka:spring-kafka-test'
50
60
testImplementation ' org.springframework.security:spring-security-test'
51
61
testRuntimeOnly ' org.junit.platform:junit-platform-launcher'
52
62
}
@@ -64,3 +74,15 @@ tasks.named('bootBuildImage') {
64
74
tasks. named(' test' ) {
65
75
useJUnitPlatform()
66
76
}
77
+
78
+ jacocoTestCoverageVerification {
79
+ violationRules {
80
+ rule {
81
+ limit {
82
+ minimum = 0.7 // Require 70% coverage
83
+ }
84
+ }
85
+ }
86
+ }
87
+
88
+ check. dependsOn jacocoTestCoverageVerification
0 commit comments