File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ plugins {
88 id " io.codearte.nexus-staging" version " 0.30.0" // logs into Sonotype OSS and does a "Close" and "Release"
99 id ' com.adarshr.test-logger' version ' 3.2.0'
1010 id " com.github.ben-manes.versions" version " 0.44.0"
11+ id ' org.sonatype.gradle.plugins.scan' version ' 2.4.1'
1112 id " org.sonarqube" version " 3.5.0.2730"
1213}
1314
@@ -79,6 +80,22 @@ jacocoTestReport {
7980}
8081test. finalizedBy jacocoTestReport
8182
83+ // Nexus vulnerability scan (https://github.com/sonatype-nexus-community/scan-gradle-plugin)
84+ ossIndexAudit {
85+ outputFormat = ' DEPENDENCY_GRAPH'
86+ printBanner = false
87+
88+ // only set proxy if running outside of Github Actions
89+ if (! System . getenv(). GITHUB_ACTIONS ) {
90+ proxyConfiguration {
91+ protocol = ' http'
92+ host = ' webproxy-btp.imsweb.com'
93+ port = 8080
94+ }
95+ }
96+ }
97+ check. dependsOn ' ossIndexAudit'
98+
8299sonarqube {
83100 properties {
84101 property " sonar.projectKey" , " imsweb_x12-parser"
You can’t perform that action at this time.
0 commit comments