{"id":19478076,"url":"https://github.com/snyk/gradle-plugin","last_synced_at":"2025-10-26T01:37:10.289Z","repository":{"id":37795480,"uuid":"296406829","full_name":"snyk/gradle-plugin","owner":"snyk","description":"Snyk Gradle Plugin - Scanning and monitoring your dependencies for security vulnerabilities from Gradle","archived":false,"fork":false,"pushed_at":"2025-04-04T12:43:38.000Z","size":117,"stargazers_count":19,"open_issues_count":19,"forks_count":20,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-06-01T12:58:25.548Z","etag":null,"topics":["gradle-plugin","snyk-cli","snyk-monitor","snyk-plugin","snyk-test"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/snyk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-09-17T18:14:21.000Z","updated_at":"2025-04-04T12:43:40.000Z","dependencies_parsed_at":"2022-06-23T17:04:30.755Z","dependency_job_id":"12e8ec62-22ff-40ae-b9f7-02b70afb6847","html_url":"https://github.com/snyk/gradle-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/snyk/gradle-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snyk%2Fgradle-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snyk%2Fgradle-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snyk%2Fgradle-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snyk%2Fgradle-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snyk","download_url":"https://codeload.github.com/snyk/gradle-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snyk%2Fgradle-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281047794,"owners_count":26435124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gradle-plugin","snyk-cli","snyk-monitor","snyk-plugin","snyk-test"],"created_at":"2024-11-10T19:47:00.327Z","updated_at":"2025-10-26T01:37:10.261Z","avatar_url":"https://github.com/snyk.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Snyk logo](https://snyk.io/style/asset/logo/snyk-print.svg)\n\n# Snyk plugin for Gradle\n\n[![Application CI](https://github.com/snyk/gradle-plugin/workflows/Application%20CI/badge.svg?branch=master)](https://github.com/snyk/gradle-plugin/actions?query=workflow%3A%22Application+CI%22)\n\nSnyk helps you find, fix and monitor for known vulnerabilities in your dependencies, both on an ad-hoc basis and as part of your CI (Build) system.\n\nThe Snyk Gradle plugin tests and monitors your Gradle dependencies.\n\n| :information_source: This product is not an official Snyk supported product. It is an open-source community driven project that is initialised and partially maintained by Snyk engineers |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n\n## Using the Snyk Plugin for Gradle\nThe latest version of the plugin is released at the [Gradle Plugins Portal](https://plugins.gradle.org/plugin/io.snyk.gradle.plugin.snykplugin).\nImport the plugin using the plugin DSL\n\nGroovy:\n```groovy\nplugins {\n  id \"io.snyk.gradle.plugin.snykplugin\" version \"0.7.0\"\n}\n```\n\nKotlin\n```kotlin\nplugins {\n  id(\"io.snyk.gradle.plugin.snykplugin\") version \"0.7.0\"\n}\n```\n\n### Setting:\n\nGroovy:\n```groovy\nsnyk {\n    arguments = '--all-sub-projects'\n    severity = 'low'\n    api = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'\n    autoDownload = true\n    autoUpdate = true\n}\n```\nKotlin:\n```kotlin\nsnyk {\n    setArguments(\"--all-sub-projects\")\n    setSeverity(\"low\")\n    setApi(\"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\")\n    setAutoDownload(true)\n    setAutoUpdate(true)\n}\n```\n\nall fields are optional\n\n- **arguments** - add extra arguments to the Snyk CLI. See Snyk CLI help for more information. In this example it scans all subprojects for gradle\n- **severity** - what is the severity threshold. Leave empty to only show the vulnerabilities but not break\n- **api** - api key that can be found on the settings page of your (free) Snyk account. Alternatively you can set an environment variable `SNYK_TOKEN` and omit it here\n- **autoDownload** - automatically download the CLI is none is installed (default = true)\n- **autoUpdate** - update the CLI if there is a newer version (only if downloaded by gradle plugin) (default = false)\n\n### Running:\n\nSnyk Test:\n```bash\n$ gradle snyk-test\n```\n\nSnyk Test together with a clean build:\n```bash\n$ gradle clean build snyk-test\n```\n\nSnyk Monitor:\n```bash\n$ gradle snyk-monitor\n```\n\nSnyk Monitor together with a clean build:\n```bash\n$ gradle clean build snyk-monitor\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnyk%2Fgradle-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnyk%2Fgradle-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnyk%2Fgradle-plugin/lists"}