From 9991ea527d1c73d96fd743eee202109af51ffbdf Mon Sep 17 00:00:00 2001 From: Tony Germano Date: Wed, 4 Nov 2026 22:35:03 -0500 Subject: [PATCH] Remove the OWASP dependency-check plugin Nothing runs the plugin: no workflow, task or document invokes dependencyCheckAggregate. Gradle still resolves its classpath on every invocation: 93 artifacts (Lucene, H2, Jackson 2.21, Guava 33, httpclient5, ...) that exist only for it, and that make up the first fetch in Renovate's artifact step, where the Maven Central 429 failures occur. Removing it cuts the downloads per run; it does not eliminate the rate-limit risk. Remove the plugin, its configuration block, its catalog entry (and the now-empty [plugins] table) and the report-file ignore patterns. What is lost: dependency-check was the only scan covering the vendored jars without Maven coordinates. Renovate's OSV alerts only cover catalog entries. A replacement scanner is a separate follow-up. Verification metadata: --write-verification-metadata only merges into an existing file and never prunes, so the set the build needs was found by deleting the file and regenerating it with a cold cache and CI's flags. The committed file is main's file minus the 115 entries nothing needs: the plugin's classpath and its parent POMs and BOMs. Two unneeded entries stay to avoid a conflict with the adjacent hunks of the commons-pool2 bump in #605: commons-pool2 2.13.0 and org.apache.commons:commons-parent:33 (stale since a178dfb67). 21 entries the plugin brought in stay because the mybatis 3.5.19 and HikariCP 7.1.0 parent chains now import them; without them a cold build fails verification on :donkey:runtimeClasspath. The regeneration also wanted to add 19 transitives of :donkey:testFixturesRuntimeClasspath, which the non-transitive list does not cover; they appear on untouched main too and a normal build does not resolve them, so they are left for a separate fix. Assisted-by: Claude:claude-fable-5-1 Signed-off-by: Tony Germano --- .dockerignore | 2 - .gitignore | 2 - build.gradle | 21 - gradle/libs.versions.toml | 3 - gradle/verification-metadata.xml | 779 ------------------------------- 5 files changed, 807 deletions(-) diff --git a/.dockerignore b/.dockerignore index 47119def9..870ffe2e9 100644 --- a/.dockerignore +++ b/.dockerignore @@ -228,8 +228,6 @@ server/src/main/java/com/mirth/connect/server/builders/VocalEZParser.java server/src/main/java/com/mirth/connect/util/GenerateExtensionUpdate.java server/setup.tar.gz -**/dependency-check-report.html -**/dependency-check-report.json # ---- Docker-specific (not build outputs, so not in .gitignore) ---- .git diff --git a/.gitignore b/.gitignore index 17542916c..7db0c83ff 100644 --- a/.gitignore +++ b/.gitignore @@ -659,5 +659,3 @@ donkey/donkey-test # /server/src/org/mozilla/javascript/xmlimpl/ server/setup.tar.gz -dependency-check-report.html -dependency-check-report.json diff --git a/build.gradle b/build.gradle index d35520992..10272f67c 100644 --- a/build.gradle +++ b/build.gradle @@ -41,27 +41,6 @@ * directories are only guaranteed gone after a clean. */ -plugins { - // vulnerability scanning: ./gradlew dependencyCheckAggregate - // (replaces the old standalone dependency-check.xml Ant entry point) - alias(libs.plugins.owasp.dependencycheck) -} - -dependencyCheck { - // NVD downloads are heavily throttled without a key; get one at - // https://nvd.nist.gov/developers/request-an-api-key - nvd { - apiKey = System.getenv('NVD_API_KEY') ?: '' - } - // the distribution ships no .NET assemblies, and the analyzer - // hard-fails the whole scan on machines without a dotnet runtime - analyzers { - assemblyEnabled = false - } - // also scan the jars that remain vendored (no Maven coordinates) - scanSet = subprojects.collect { it.file('lib') }.findAll { it.directory } -} - // Build flags are passed as Gradle project properties: -Pname=true. def flag = { String name -> providers.gradleProperty(name).getOrNull() == 'true' diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index e61703978..8cd07184a 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -663,6 +663,3 @@ server-test = [ "mockito-inline", "objenesis", ] - -[plugins] -owasp-dependencycheck = { id = "org.owasp.dependencycheck", version = "12.2.2" } diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index e21cee856..5cb38ec03 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -34,34 +34,16 @@ - - - - - - - - - - - - - - - - - - @@ -72,16 +54,6 @@ - - - - - - - - - - @@ -92,11 +64,6 @@ - - - - - @@ -105,14 +72,6 @@ - - - - - - - - @@ -121,14 +80,6 @@ - - - - - - - - @@ -137,14 +88,6 @@ - - - - - - - - @@ -161,14 +104,6 @@ - - - - - - - - @@ -179,11 +114,6 @@ - - - - - @@ -192,37 +122,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -257,27 +161,6 @@ - - - - - - - - - - - - - - - - - - - - - @@ -286,11 +169,6 @@ - - - - - @@ -299,24 +177,6 @@ - - - - - - - - - - - - - - - - - - @@ -325,24 +185,11 @@ - - - - - - - - - - - - - @@ -351,14 +198,6 @@ - - - - - - - - @@ -367,14 +206,6 @@ - - - - - - - - @@ -385,16 +216,6 @@ - - - - - - - - - - @@ -411,14 +232,6 @@ - - - - - - - - @@ -432,43 +245,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -514,14 +290,6 @@ - - - - - - - - @@ -559,14 +327,6 @@ - - - - - - - - @@ -728,14 +488,6 @@ - - - - - - - - @@ -792,14 +544,6 @@ - - - - - - - - @@ -824,14 +568,6 @@ - - - - - - - - @@ -882,27 +618,6 @@ - - - - - - - - - - - - - - - - - - - - - @@ -988,14 +703,6 @@ - - - - - - - - @@ -1059,14 +766,6 @@ - - - - - - - - @@ -1083,14 +782,6 @@ - - - - - - - - @@ -1139,14 +830,6 @@ - - - - - - - - @@ -1155,11 +838,6 @@ - - - - - @@ -1181,14 +859,6 @@ - - - - - - - - @@ -1226,14 +896,6 @@ - - - - - - - - @@ -1270,14 +932,6 @@ - - - - - - - - @@ -1318,11 +972,6 @@ - - - - - @@ -1333,11 +982,6 @@ - - - - - @@ -1376,22 +1020,6 @@ - - - - - - - - - - - - - - - - @@ -1408,14 +1036,6 @@ - - - - - - - - @@ -1432,19 +1052,6 @@ - - - - - - - - - - - - - @@ -1506,26 +1113,11 @@ - - - - - - - - - - - - - - - @@ -1561,11 +1153,6 @@ - - - - - @@ -1696,11 +1283,6 @@ - - - - - @@ -1717,58 +1299,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1813,54 +1343,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1924,34 +1406,16 @@ - - - - - - - - - - - - - - - - - - @@ -1965,11 +1429,6 @@ - - - - - @@ -2007,11 +1466,6 @@ - - - - - @@ -2022,11 +1476,6 @@ - - - - - @@ -2178,45 +1627,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2547,30 +1957,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - @@ -2579,14 +1965,6 @@ - - - - - - - - @@ -2603,14 +1981,6 @@ - - - - - - - - @@ -2635,14 +2005,6 @@ - - - - - - - - @@ -2699,14 +2061,6 @@ - - - - - - - - @@ -2736,11 +2090,6 @@ - - - - - @@ -2902,40 +2251,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2973,30 +2288,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - @@ -3036,34 +2327,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -3079,32 +2342,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -3131,14 +2368,6 @@ - - - - - - - - @@ -3475,14 +2704,6 @@ - - - - - - - -