From c50d6f9c19dce455459bbefa1861f606ca89da65 Mon Sep 17 00:00:00 2001 From: Simon Templer Date: Wed, 13 Mar 2024 16:35:09 +0100 Subject: [PATCH] build: activate lockfile generation for security scan --- build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build.gradle b/build.gradle index 3a38cd0..1b5e13d 100644 --- a/build.gradle +++ b/build.gradle @@ -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',