Skip to content

Commit 56770a2

Browse files
committed
Don't fail build for missing ossindex credentials
1 parent 8c0d5c5 commit 56770a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,10 @@ tasks.named("dependencyUpdates").configure {
170170
}
171171

172172
ossIndexAudit {
173-
username = findProperty("ossIndexUsername")
174-
password = findProperty("ossIndexToken")
173+
if(project.hasProperty("ossIndexUsername") && project.hasProperty("ossIndexToken")) {
174+
username = findProperty("ossIndexUsername")
175+
password = findProperty("ossIndexToken")
176+
}
175177
allConfigurations = false
176178
useCache = true
177179
excludeVulnerabilityIds = []

0 commit comments

Comments
 (0)