{"id":17015211,"url":"https://github.com/lclpyt/gradlebuildutils","last_synced_at":"2026-04-13T05:32:17.384Z","repository":{"id":105887473,"uuid":"450441129","full_name":"LCLPYT/GradleBuildUtils","owner":"LCLPYT","description":"A Gradle plugin for git versioning and other useful utility.","archived":false,"fork":false,"pushed_at":"2023-11-11T14:45:35.000Z","size":94,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T14:46:44.297Z","etag":null,"topics":["git","gradle","gradle-plugin","java","versioning"],"latest_commit_sha":null,"homepage":"","language":"Java","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/LCLPYT.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":"2022-01-21T10:06:46.000Z","updated_at":"2022-02-11T01:35:55.000Z","dependencies_parsed_at":"2023-11-11T15:31:33.253Z","dependency_job_id":"09552909-6b99-4534-ba28-46090aa7b217","html_url":"https://github.com/LCLPYT/GradleBuildUtils","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LCLPYT%2FGradleBuildUtils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LCLPYT%2FGradleBuildUtils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LCLPYT%2FGradleBuildUtils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LCLPYT%2FGradleBuildUtils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LCLPYT","download_url":"https://codeload.github.com/LCLPYT/GradleBuildUtils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244973701,"owners_count":20541022,"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":["git","gradle","gradle-plugin","java","versioning"],"created_at":"2024-10-14T06:27:54.956Z","updated_at":"2025-12-30T23:46:53.821Z","avatar_url":"https://github.com/LCLPYT.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GradleBuildUtils\nA Gradle plugin for git versioning and other useful utility.\n\n## Git Tag Versioning\nThe Git tag versioning feature allows for easy dynamic versioning using git tags.\nEffectively, the tools runs:\n```\ngit describe --tags --abbrev=0\n```\nwhich will retrieve the latest tag, no matter how many commits ago.\n\nTo create a new version, you can simply add a new Git tag:\n```\ngit tag 1.0.1\n```\nThe tool will also validate against a version pattern:\n```js\n/^[0-9]+\\.[0-9]+\\.[0-9]+(?:-[a-z0-9]+)?$/\n```\nWhich means, you can use alpha-numerical version values of the schema `major.minor.patch-variant`, where the `-variant` part is optional.\n\n## Use in your buildscript\n### Kotlin\nAdd the following repository to your `settings.gradle.kts`:\n```kotlin\npluginManagement {\n    repositories {\n        maven {\n            name = \"LCLPNetwork Maven\"\n            url = uri(\"https://repo.lclpnet.work/repository/internal\")\n        }\n        gradlePluginPortal()\n    }\n}\n```\n\nIn your `build.gradle.kts`, include the plugin at the top of the buildscript:\n```kotlin\nplugins {\n    id(\"gradle-build-utils\").version(\"1.0.0\") // replace with your version\n}\n```\n\nTo use the git tag versioning feature, you can add:\n```kotlin\nval gitVersion: groovy.lang.Closure\u003cString\u003e by extra\nversion = gitVersion()\n```\n\nTo load a Java properties file, you can use this tool:\n```kotlin\nval loadProperties: groovy.lang.Closure\u003cjava.util.Properties\u003e by extra\nval props = loadProperties(\"publish.properties\")\n```\n\n### Groovy\nAdd the following repository to your `settings.gradle`:\n```groovy\npluginManagement {\n    repositories {\n        maven {\n            name = 'LCLPNetwork Maven'\n            url = 'https://repo.lclpnet.work/repository/internal'\n        }\n        gradlePluginPortal()\n    }\n}\n```\n\nIn your `build.gradle`, include the plugin at the top of the buildscript:\n```groovy\nplugins {\n    id 'gradle-build-utils' version '1.0.0' // replace with your version\n}\n```\n\nTo use the git tag versioning feature, you can add:\n```groovy\nversion = gitVersion.call()\n```\n\nTo load a Java properties file, you can use this tool:\n```groovy\ndef props = loadProperties.call('publish.properties')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flclpyt%2Fgradlebuildutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flclpyt%2Fgradlebuildutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flclpyt%2Fgradlebuildutils/lists"}