diff --git a/build.gradle b/build.gradle index de78053..686882e 100644 --- a/build.gradle +++ b/build.gradle @@ -1,11 +1,20 @@ plugins { id 'java' + id 'jacoco' id 'org.springframework.boot' version '3.1.5' id 'io.spring.dependency-management' version '1.1.3' id 'com.google.cloud.tools.jib' version '3.4.0' id 'org.sonarqube' version '4.4.1.3373' } +jacocoTestReport { + reports { + xml.required = true + html.required = true + } +} + + sonar { properties { property "sonar.projectKey", "petstore" @@ -66,8 +75,8 @@ tasks.named('test') { } // to prevent Mockito's inline mock maker fail on container jvmArgs('-Djdk.attach.allowAttachSelf=true', '-XX:+StartAttachListener') - useJUnitPlatform() + finalizedBy jacocoTestReport } tasks.named('bootBuildImage') {