Skip to content

Remove the OWASP dependency-check plugin - #606

Open
tonygermano wants to merge 1 commit into
OpenIntegrationEngine:mainfrom
tonygermano:build/drop-dependency-check
Open

tonygermano wants to merge 1 commit into
OpenIntegrationEngine:mainfrom
tonygermano:build/drop-dependency-check

Conversation

@tonygermano

Copy link
Copy Markdown
Member

Summary

Nothing runs org.owasp.dependencycheck: no workflow, task or document invokes dependencyCheckAggregate. Gradle still resolves the plugin's classpath on every invocation, 93 artifacts (Lucene, H2, Jackson 2.21, Guava 33, httpclient5, …) that exist only for it. That classpath is also the first fetch in Renovate's artifact step, where the Maven Central 429 failures on #522 and #551 occur. Removing it cuts the downloads per run; it does not eliminate the rate-limit risk, since the dependencies task still fetches every product dependency.

This PR removes the plugin, its configuration block, its catalog entry and the two report-file ignore patterns. After the change buildEnvironment reports no dependencies.

What is lost: dependency-check was the only scanner that covered the vendored jars without Maven coordinates. Renovate's OSV alerts only cover catalog entries. A replacement scanner is a possible follow-up, not part of this PR.

Verification metadata

--write-verification-metadata only merges into an existing file; it never prunes. To find what the build needs, Claude deleted the file and regenerated 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), so every retained entry is byte-identical to main.

  • Two unneeded entries stay to avoid a conflict with the adjacent hunks of the commons-pool2 bump in Bump commons-pool2 to 2.13.1 #605: org.apache.commons:commons-pool2:2.13.0 and org.apache.commons:commons-parent:33 (stale since a178dfb).
  • 21 entries the plugin brought in stay because the mybatis 3.5.19 and HikariCP 7.1.0 parent chains now import them (junit, mockito, spring-framework, log4j, groovy, jakartaee and jackson BOMs, slf4j 2.0.17). Without them a cold build dist fails verification on :donkey:runtimeClasspath.
  • The regeneration also wanted to add 19 transitives of :donkey:testFixturesRuntimeClasspath (c3p0, HikariCP-java7, Oracle UCP, …), a configuration the root build script's non-transitive list does not cover since 3c79615. They appear when regenerating on untouched main too, and a normal build does not resolve them, so they are left for a separate PR.

Testing

Claude checked:

  • ./gradlew clean build dist -PdisableSigning=true -Pcoverage=true with all tests, cold cache, without the write flag so verification is enforced as in CI: passes.
  • ./gradlew -q buildEnvironment: No dependencies.
  • git grep -i 'dependencycheck\|dependency-check\|owasp\|NVD_API_KEY' finds nothing but an OWASP cheat-sheet link in a test comment and bundled JavaScript.

Release notes

  • Removed the unused OWASP dependency-check Gradle plugin from the build.

🤖 Drafted with Claude Code

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 OpenIntegrationEngine#605: commons-pool2 2.13.0 and
org.apache.commons:commons-parent:33 (stale since a178dfb). 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 🫏runtimeClasspath. The regeneration also
wanted to add 19 transitives of 🫏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 <tony@germano.name>
@tonygermano
tonygermano marked this pull request as draft November 26, 2026 22:10
@github-actions

Copy link
Copy Markdown

Test Results

  147 files  ±0    147 suites  ±0   4m 50s ⏱️ +58s
  996 tests ±0    996 ✅ ±0  0 💤 ±0  0 ❌ ±0 
1 314 runs  ±0  1 308 ✅ ±0  6 💤 ±0  0 ❌ ±0 

Results for commit 9991ea5. ± Comparison against base commit da38caf.

@tonygermano
tonygermano marked this pull request as ready for review November 26, 2026 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant