{"id":25720114,"url":"https://github.com/gregwhitaker/gradle-gitignore","last_synced_at":"2026-05-01T21:05:09.723Z","repository":{"id":38450791,"uuid":"78976175","full_name":"gregwhitaker/gradle-gitignore","owner":"gregwhitaker","description":"Gradle plugin for generating .gitignore files.","archived":false,"fork":false,"pushed_at":"2022-06-25T15:04:28.000Z","size":728,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-18T21:19:49.355Z","etag":null,"topics":["git","gitignore","gitignore-files","gradle","gradle-plugin"],"latest_commit_sha":null,"homepage":"https://gregwhitaker.github.io/gradle-gitignore/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gregwhitaker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-14T23:46:23.000Z","updated_at":"2022-06-25T14:45:23.000Z","dependencies_parsed_at":"2022-07-29T04:08:24.384Z","dependency_job_id":null,"html_url":"https://github.com/gregwhitaker/gradle-gitignore","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/gregwhitaker/gradle-gitignore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fgradle-gitignore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fgradle-gitignore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fgradle-gitignore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fgradle-gitignore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregwhitaker","download_url":"https://codeload.github.com/gregwhitaker/gradle-gitignore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fgradle-gitignore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32512691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["git","gitignore","gitignore-files","gradle","gradle-plugin"],"created_at":"2025-02-25T17:36:35.513Z","updated_at":"2026-05-01T21:05:09.700Z","avatar_url":"https://github.com/gregwhitaker.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gradle-gitignore-plugin\n[![][actions img]][actions]\n[![][docs img]][docs]\n[![][pluginportal img]][pluginportal]\n[![][license img]][license]\n\nGradle plugin for generating .gitignore files using [gitignore.io](http://gitignore.io).\n\n## Features\n* Templates supplied by gitignore.io, so they are always up-to-date.\n\n* Automatic generation of the gitignore file based on the following project facets:\n    * Programming Languages\n    * Development Environment\n    * Operating System\n        \n* Generation of the gitignore file is completely configurable.\n\n* Support for pulling gitignore templates from locations other than gitignore.io.\n\n## Usage\nThe plugin can be applied with either the plugin or legacy buildscript DSL. For more information on applying the plugin and available plugin versions please refer to the [Gradle Plugin Portal](https://plugins.gradle.org/plugin/com.github.gregwhitaker.gitignore).\n\n### Applying the Plugin with Plugin DSL\n```\nplugins {\n    id \"com.github.gregwhitaker.gitignore\"    version \"2.2.0\"\n}\n```\n\n### Applying the Plugin with Legacy Buildscript DSL\n```\nbuildscript {\n  repositories {\n    maven {\n      url \"https://plugins.gradle.org/m2/\"\n    }\n  }\n  dependencies {\n    classpath \"gradle.plugin.com.github.gregwhitaker:gradle-gitignore-plugin:2.2.0\"\n  }\n}\n\napply plugin: \"com.github.gregwhitaker.gitignore\"\n```\n\n### Simple Configuration\nWhen using the plugin with automatic configuration there is no need for a configuration block.  Simply apply\nthe plugin, as detailed above, and a `.gitignore` file will be automatically generated.\n\n### Advanced Configuration\nThe plugin uses *\"facets\"* to describe what rules to add to the .gitignore file.  These facets correspond to the technology \nselections on the gitignore.io website.\n\nWhen using advanced configuration the plugin will continue to automatically discover project facets, but you are also able to add \nyour own facets to the generation process by using the `facets` configuration parameter.\n\n```$groovy\ngitignore {\n    facets = [\n        'linux',\n        'eclipse'\n    ]\n}   \n```\n\n### Manual Configuration\nAutomatic discovery of project facets can be disabled allowing you to configure all facets that will be used for generation \nof the .gitignore file by calling the `noAutoDetect()` configuration method.\n\n```$groovy\ngitignore {\n    noAutoDetect()\n    facets = [\n        'java',\n        'idea',\n        'gradle'\n    ]\n}   \n```\n\n### External Configuration\nIn the event that you do not want to use gitignore.io to generate the .gitignore file you can insert any hosted document \nusing the `url` configuration parameter.\n\n```$groovy\ngitignore {\n    url = 'https://raw.githubusercontent.com/gregwhitaker/gradle-gitignore-plugin/master/src/test/templates/template-gitignore?token=AFw8vOxtg_dhIKrIKO1-aKjhpcvuxB6Kks5YhFcIwA%3D%3D'\n}   \n\n```\n\n## Documentation\nFor detailed documentation on this plugin and its features please refer to the [GitIgnore Gradle Plugin User Guide](https://gregwhitaker.github.io/gradle-gitignore/).\n\n## Bugs and Feedback\nFor bugs, questions, and discussions please use the [Github Issues](https://github.com/gregwhitaker/gradle-gitignore-plugin/issues).\n\n## License\nCopyright 2017-Present Greg Whitaker\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n[actions]:https://github.com/gregwhitaker/gradle-gitignore/actions/workflows/gradle-build.yml\n[actions img]:https://github.com/gregwhitaker/gradle-gitignore/actions/workflows/gradle-build.yml/badge.svg\n\n[docs]:https://gregwhitaker.github.io/gradle-gitignore/\n[docs img]:https://img.shields.io/badge/Documentation-yes-green.svg\n\n[pluginportal]:https://plugins.gradle.org/plugin/com.github.gregwhitaker.gitignore\n[pluginportal img]:https://img.shields.io/badge/Gradle%20Plugin%20Portal-v2.2.0-blue.svg\n\n[license]:LICENSE\n[license img]:https://img.shields.io/badge/License-Apache%202-blue.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Fgradle-gitignore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregwhitaker%2Fgradle-gitignore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Fgradle-gitignore/lists"}