Snyk CLI plugin for Gradle projects providing dependency metadata for vulnerability scanning. Current version 5.1.1 (Nov 2025), with a fast release cadence around 2-3 months. Supports Gradle 4-9, Node 16-20, and Windows/Linux/macOS. Key differentiator: integrates with Snyk CLI to automatically detect and fix vulnerabilities in Gradle dependencies, including multi-project builds and custom configuration matching.
npm install snyk-gradle-pluginVerified import paths — ran on the pinned version, not inferred.
Scans a Gradle project for vulnerabilities using the inspect function, with configuration matching for specific dependency configurations.
Update any code relying on node ID format; previously node IDs assumed only one artifact per resolved dependency
Use import statements: `import { inspect } from 'snyk-gradle-plugin'`Upgrade to v4.9.1 or later, or ensure paths have no spaces
Upgrade Node to version 16 or later
Ensure package is installed: `npm install snyk-gradle-plugin`. Use `import` syntax, not `require`, as the package is ESM-only.
Use named import: `import { inspect } from 'snyk-gradle-plugin'`Set `options.path` to the correct Gradle project directory containing build.gradle