{"id":20589998,"url":"https://github.com/doist/version-name-gradle-plugin","last_synced_at":"2026-04-21T02:01:57.188Z","repository":{"id":44656800,"uuid":"413474916","full_name":"Doist/version-name-gradle-plugin","owner":"Doist","description":"Gradle plugin to use git tags as project version names","archived":false,"fork":false,"pushed_at":"2023-09-19T11:38:09.000Z","size":74,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-06T13:39:14.786Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Doist.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-04T15:14:11.000Z","updated_at":"2022-03-09T21:35:39.000Z","dependencies_parsed_at":"2024-11-16T07:33:45.001Z","dependency_job_id":"77bd0418-6261-4473-871b-a89730a59a62","html_url":"https://github.com/Doist/version-name-gradle-plugin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Doist/version-name-gradle-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Fversion-name-gradle-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Fversion-name-gradle-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Fversion-name-gradle-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Fversion-name-gradle-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Doist","download_url":"https://codeload.github.com/Doist/version-name-gradle-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Fversion-name-gradle-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32073496,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T01:35:38.224Z","status":"online","status_checked_at":"2026-04-21T02:00:06.111Z","response_time":128,"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":[],"created_at":"2024-11-16T07:33:33.712Z","updated_at":"2026-04-21T02:01:56.960Z","avatar_url":"https://github.com/Doist.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Version Name Gradle Plugin\n\nThis plugin adds a kotlin extension function that provides a version name based on the latest git tag.\n\n## How to use it 👣\n\nApply the plugin in `build.gradle.kts`:  \n```\nplugins {\n    id(\"com.doist.gradle.version-name\")\n}\n```\n\nThen, you can use:\n```\nversionName = project.versionName()\n```\n\nIt adds also `project.versionCode()` extension method that's useful in Android projects. This can be used like:\n\n```\nandroid {\n    defaultConfig {\n        versionCode = project.versionCode()\n        versionName = project.versionName()\n        ...\n    }\n}\n```\n\nVersion name is calculated based on the latest git tag. To be specific it uses following command to get it: \n```\ngit describe --tags --abbrev=0 --match $prefix*\n```\n\nIt requires git.\n\nVersion code is a version name without a prefix, `v` by default.\n\n## Configuration ⚙️\n\n```\nversionName {\n    namePrefix.set(\"v\")\n}\n``` \n\n## Contributing 🤝\n\nFeel free to open an issue or submit a pull request for any bugs/improvements.\n\n## Acknowledgements 🙏\nThis plugin is based on [kotlin-gradle-plugin-template 🐘](https://github.com/cortinico/kotlin-gradle-plugin-template)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoist%2Fversion-name-gradle-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoist%2Fversion-name-gradle-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoist%2Fversion-name-gradle-plugin/lists"}