Skip to content

Commit

Permalink
sonar qubecicd
Browse files Browse the repository at this point in the history
  • Loading branch information
bhuridech committed Oct 27, 2023
1 parent 11e9708 commit 0ae66c1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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') {
Expand Down

0 comments on commit 0ae66c1

Please sign in to comment.