{"library":"snyk-gradle-plugin","title":"Snyk Gradle Plugin","type":"library","description":"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.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install snyk-gradle-plugin"],"cli":null},"imports":["import { inspect } from 'snyk-gradle-plugin'","import { buildDepTree } from 'snyk-gradle-plugin'","import type { PluginOptions } from 'snyk-gradle-plugin'"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"https://snyk.io","github":"https://github.com/snyk/snyk-gradle-plugin","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/snyk-gradle-plugin","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import { inspect } from 'snyk-gradle-plugin';\n\nconst options = {\n  path: process.cwd(),\n  gradleSubProject: process.env.GRADLE_SUB_PROJECT || '',\n  allSubProjects: false,\n  configurationMatching: '^releaseRuntimeClasspath$',\n  configurationAttributes: 'buildtype:release,usage:java-runtime',\n};\n\nasync function run() {\n  try {\n    const result = await inspect(options);\n    console.log(JSON.stringify(result, null, 2));\n  } catch (error) {\n    console.error('Inspection failed:', error.message);\n  }\n}\n\nrun();","lang":"typescript","description":"Scans a Gradle project for vulnerabilities using the inspect function, with configuration matching for specific dependency configurations.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}