Skip to content

Commit 3850fd6

Browse files
add jacoco build.gradle.kts
1 parent 647b67e commit 3850fd6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

build.gradle.kts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import org.gradle.api.tasks.testing.logging.TestExceptionFormat
22
import org.gradle.api.tasks.testing.logging.TestLogEvent
33

44
plugins {
5-
checkstyle
65
application
6+
checkstyle
7+
jacoco
78
id("org.sonarqube") version "6.2.0.5505"
89
id("org.springframework.boot") version "3.5.0"
910
id("io.spring.dependency-management") version "1.1.7"
@@ -28,7 +29,6 @@ repositories {
2829

2930
dependencies {
3031
implementation("org.springframework.boot:spring-boot-starter")
31-
implementation("org.springframework.boot:spring-boot-starter-web")
3232
implementation("org.springframework.boot:spring-boot-devtools")
3333
testImplementation("org.springframework.boot:spring-boot-starter-test")
3434
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
@@ -47,6 +47,12 @@ tasks.test {
4747
}
4848
}
4949

50+
tasks.jacocoTestReport {
51+
reports {
52+
xml.required.set(true)
53+
}
54+
}
55+
5056
sonar {
5157
properties {
5258
property("sonar.projectKey", "sergeycherkasovv_java-project-99")

0 commit comments

Comments
 (0)