File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
3535 run : |
3636 chmod +x gradlew
37- ./gradlew build
37+ ./gradlew build sonar
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ plugins {
77 id ' com.github.ben-manes.versions' version ' 0.52.0' // check for out-of-date dependencies (run 'dependencyUpdates' manually)
88 id ' com.github.spotbugs' version ' 6.1.11' // spotbugs code analysis
99 id ' org.sonatype.gradle.plugins.scan' version ' 3.1.1' // scan for vulnerabilities
10+ id ' org.sonarqube' version ' 6.1.0.5360' // sonarQube analysis
1011}
1112
1213group = ' com.imsweb'
@@ -70,6 +71,14 @@ jacocoTestReport {
7071}
7172test. finalizedBy jacocoTestReport
7273
74+ sonarqube {
75+ properties {
76+ property ' sonar.projectKey' , ' imsweb_seerutils'
77+ property ' sonar.organization' , ' imsweb'
78+ property ' sonar.host.url' , ' https://sonarcloud.io'
79+ }
80+ }
81+
7382// Nexus vulnerability scan (see https://github.com/sonatype-nexus-community/scan-gradle-plugin)
7483ossIndexAudit {
7584 outputFormat = ' DEPENDENCY_GRAPH'
You can’t perform that action at this time.
0 commit comments