{"id":16040349,"url":"https://github.com/mathroule/gradle-version-plugin","last_synced_at":"2025-07-06T01:31:25.041Z","repository":{"id":98988498,"uuid":"185642022","full_name":"mathroule/gradle-version-plugin","owner":"mathroule","description":"Gradle Version Plugin","archived":false,"fork":false,"pushed_at":"2021-11-23T08:27:08.000Z","size":126,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T14:13:13.551Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Groovy","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/mathroule.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-05-08T16:23:07.000Z","updated_at":"2021-11-23T08:27:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"18c25ee0-20e0-4b07-8f66-68de1a566e5d","html_url":"https://github.com/mathroule/gradle-version-plugin","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathroule%2Fgradle-version-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathroule%2Fgradle-version-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathroule%2Fgradle-version-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathroule%2Fgradle-version-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathroule","download_url":"https://codeload.github.com/mathroule/gradle-version-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247296586,"owners_count":20915659,"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","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-10-08T23:10:37.767Z","updated_at":"2025-04-05T06:24:50.626Z","avatar_url":"https://github.com/mathroule.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gradle Version Plugin\n\n[![](https://jitpack.io/v/mathroule/gradle-version-plugin.svg)](https://jitpack.io/#mathroule/gradle-version-plugin)\n\nA Gradle plugin to manage [semantic versioning](https://semver.org) `minor.major.patch` and generate corresponding Java version or Android version name and version code.\n\nTask usage\n----------\n```groovy\nbuildscript {\n    repositories {\n        maven { url 'https://jitpack.io' }\n    }\n\n    dependencies {\n        classpath 'com.mathroule:gradle-plugin:1.0.3'\n    }\n}\n\napply plugin: 'com.mathroule.gradle-plugin'\n```\n\nAfter applying the plugin you'll find `bumpVersion` tasks in your project.\n\nTo bump version, use\n```\ngradle bumpVersion      # Shortcut for bumpPatchVersion\ngradle bumpPatchVersion # Example bump version 1.1.2 to 1.1.3\ngradle bumpMinorVersion # Example bump version 1.1.2 to 1.2.0\ngradle bumpMajorVersion # Example bump version 1.1.2 to 2.0.0\n```\n\nIf no VERSION file is presents, the file is created and init using version 0.0.1\n\nAndroid version code generation\n-------------------------------\nThe Android version code is built from the version name like this:\n```\n12345699\n| | | \\- 2 fourth digit =\u003e release candidate version\n| | \\- 2 third digit =\u003e patch version\n| \\- 2 second digit =\u003e minor version\n\\- 2 first digit =\u003e major version\n```\n\nExample:\n| Version name   | Version code |\n|----------------|--------------|\n| 1.0.0          | 1000099      |\n| 1.2.3          | 1020399      |\n| 1.2.3-SNAPSHOT | 1020300      |\n| 1.2.3-RC1      | 1020301      |\n| 1.2.3-RC4      | 1020304      |\n| 99.2.3         | 99020399     |\n| 100.2.3        | 100020399    |\n\nJava usage\n----------\n```groovy\nversion versionPluginName\n```\n\nAndroid usage\n-------------\n```groovy\nandroid {\n    defaultConfig {\n        versionCode versionPluginCode\n        versionName versionPluginName\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathroule%2Fgradle-version-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathroule%2Fgradle-version-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathroule%2Fgradle-version-plugin/lists"}