File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -o errexit
4
+
5
+ # ###########################################
6
+ # Main Program #
7
+ # ###########################################
8
+ RELATIVE_DIR_PATH=" $( dirname " ${BASH_SOURCE[0]:- $0 } " ) "
9
+ source " ${RELATIVE_DIR_PATH} /javaConfig.bash"
10
+
11
+ echo " Creating SSLDC reports"
12
+ ./gradlew -version
13
+ ./gradlew -PssdlcReport.enabled=true --continue -x test -x integrationTest -x spotlessApply clean check scalaCheck kotlinCheck testClasses || true
14
+ echo " SpotBugs created the following SARIF files"
15
+ find . -path " */spotbugs/*.sarif"
Original file line number Diff line number Diff line change @@ -338,7 +338,9 @@ configure(javaCodeCheckedProjects) {
338
338
}
339
339
340
340
spotbugs {
341
- excludeFilter = new File (configDir, ' spotbugs/exclude.xml' )
341
+ if (! project. buildingWith(' ssdlcReport.enabled' )) {
342
+ excludeFilter = new File (configDir, ' spotbugs/exclude.xml' )
343
+ }
342
344
}
343
345
344
346
codenarc {
@@ -350,6 +352,7 @@ configure(javaCodeCheckedProjects) {
350
352
reports {
351
353
xml. enabled = project. buildingWith(' xmlReports.enabled' )
352
354
html. enabled = ! project. buildingWith(' xmlReports.enabled' )
355
+ sarif. enabled = project. buildingWith(' ssdlcReport.enabled' )
353
356
}
354
357
}
355
358
You can’t perform that action at this time.
0 commit comments