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 @@ -337,7 +337,9 @@ configure(javaCodeCheckedProjects) {
337
337
}
338
338
339
339
spotbugs {
340
- excludeFilter = new File (configDir, ' spotbugs/exclude.xml' )
340
+ if (! project. buildingWith(' ssdlcReport.enabled' )) {
341
+ excludeFilter = new File (configDir, ' spotbugs/exclude.xml' )
342
+ }
341
343
}
342
344
343
345
codenarc {
@@ -349,6 +351,7 @@ configure(javaCodeCheckedProjects) {
349
351
reports {
350
352
xml. enabled = project. buildingWith(' xmlReports.enabled' )
351
353
html. enabled = ! project. buildingWith(' xmlReports.enabled' )
354
+ sarif. enabled = project. buildingWith(' ssdlcReport.enabled' )
352
355
}
353
356
}
354
357
You can’t perform that action at this time.
0 commit comments