Skip to content

Commit c50d6f9

Browse files
committed
build: activate lockfile generation for security scan
1 parent 83fadd0 commit c50d6f9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,17 @@ configurations.all {
175175
// ensure SNAPSHOTs are updated every time if needed
176176
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
177177
}
178+
179+
configurations {
180+
// activate dependency locks for lockfile generation (used by trivy security scan)
181+
compileClasspath {
182+
resolutionStrategy.activateDependencyLocking()
183+
}
184+
runtimeClasspath {
185+
resolutionStrategy.activateDependencyLocking()
186+
}
187+
}
188+
178189
def defaultJvmArgs = ['-Dcache.level1.enabled=false',
179190
'-Dcache.level1.size=0',
180191
'-Dcache.level2.enabled=false',

0 commit comments

Comments
 (0)