Skip to content

Commit

Permalink
build: activate lockfile generation for security scan
Browse files Browse the repository at this point in the history
  • Loading branch information
stempler committed Mar 13, 2024
1 parent 83fadd0 commit c50d6f9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,17 @@ configurations.all {
// ensure SNAPSHOTs are updated every time if needed
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}

configurations {
// activate dependency locks for lockfile generation (used by trivy security scan)
compileClasspath {
resolutionStrategy.activateDependencyLocking()
}
runtimeClasspath {
resolutionStrategy.activateDependencyLocking()
}
}

def defaultJvmArgs = ['-Dcache.level1.enabled=false',
'-Dcache.level1.size=0',
'-Dcache.level2.enabled=false',
Expand Down

0 comments on commit c50d6f9

Please sign in to comment.