Skip to content

Commit 4b51e0e

Browse files
committed
Add back scanning
1 parent a3de0c9 commit 4b51e0e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

build.gradle

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}
8081
test.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+
8299
sonarqube {
83100
properties {
84101
property "sonar.projectKey", "imsweb_x12-parser"

0 commit comments

Comments
 (0)