{"id":18006713,"url":"https://github.com/jamesridgway/gradle-gitflow-plugin","last_synced_at":"2026-05-03T06:31:17.352Z","repository":{"id":93081587,"uuid":"105360326","full_name":"jamesridgway/gradle-gitflow-plugin","owner":"jamesridgway","description":"Gitflow versioning plugin for gradle","archived":false,"fork":false,"pushed_at":"2018-09-12T18:23:00.000Z","size":150,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T11:46:56.679Z","etag":null,"topics":["gitflow","gradle","gradle-plugin","java"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamesridgway.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGE.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-30T09:48:05.000Z","updated_at":"2020-02-24T21:45:35.000Z","dependencies_parsed_at":"2023-06-04T17:15:07.614Z","dependency_job_id":null,"html_url":"https://github.com/jamesridgway/gradle-gitflow-plugin","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/jamesridgway/gradle-gitflow-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesridgway%2Fgradle-gitflow-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesridgway%2Fgradle-gitflow-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesridgway%2Fgradle-gitflow-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesridgway%2Fgradle-gitflow-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesridgway","download_url":"https://codeload.github.com/jamesridgway/gradle-gitflow-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesridgway%2Fgradle-gitflow-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32560281,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T03:21:47.309Z","status":"ssl_error","status_checked_at":"2026-05-03T03:21:43.884Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["gitflow","gradle","gradle-plugin","java"],"created_at":"2024-10-30T01:09:37.947Z","updated_at":"2026-05-03T06:31:17.334Z","avatar_url":"https://github.com/jamesridgway.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gradle-gitflow-plugin\n[![Build Status](https://travis-ci.org/jamesridgway/gradle-gitflow-plugin.svg?branch=master)](https://travis-ci.org/jamesridgway/gradle-gitflow-plugin)\n[ ![Download](https://api.bintray.com/packages/jamesridgway/gradle-plugins/uk.co.jamesridgway%3Agradle-gitflow-plugin/images/download.svg) ](https://bintray.com/jamesridgway/gradle-plugins/uk.co.jamesridgway%3Agradle-gitflow-plugin/_latestVersion)\n\nThis project is a GitFlow versioning plugin for gradle.\n\nThis plugin will infer the version number to use for your project based on the state of the git repository.\n\n## Usage\nApply the plugin and add it as a classpath dependency as demonstrated below:\n\nExample `build.gradle`:\n\n```groovy\napply plugin: 'uk.co.jamesridgway.gradle.gitflow.plugin'\n\nbuildscript {\n    repositories {\n        jcenter()\n    }\n    dependencies {\n        classpath 'uk.co.jamesridgway:gradle-gitflow-plugin:1.5.5'\n    }\n}\n```\n\n\nThat's all it takes, the plugin will set the `version` attribute of your build automatically.\n\n## How does it work?\nThe plugin uses [jgit](https://github.com/eclipse/jgit) to infer the version number from the state of the repository.\n\nThe version can be inferred without needing to add or alter any tasks in the gradle task graph.\n\n### Release Version\nA tagged commit of the format `major.minor.patch` (on any branch) will be determined as a release version.\n\n### Unreleased Version\nFor any commit that is not tagged with a release version (`major.minor.patch`) an \"unreleased\" version will be inferred.\n\nBy default, an unreleased version is as follows:\n\n    0.0.1.1-feature/test1+sha.8661cfd.dirty\n    | | | | |                 |       |\n    | | | | |                 |       └ \"dirty\" is ppended if the commit is dirty\n    | | | | |                 └ Short commit id\n    | | | | └ Branch name\n    | | | └ Number of commits since last tag\n    | | └ Patch version for last release version\n    | └ Minor version for last release version\n    └ Major version for last release version\n\nIf the repository has never been tagged for a release the version will default to `0.0.0`\n\n## Configuration\nThe following can be configured:\n* Unreleased version template\n\nRefer to the [configuration](https://github.com/jamesridgway/gradle-gitflow-plugin/wiki/Configuration) section of the wiki for detailed instructions on how to configure the plugin.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesridgway%2Fgradle-gitflow-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesridgway%2Fgradle-gitflow-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesridgway%2Fgradle-gitflow-plugin/lists"}