{"id":16859358,"url":"https://github.com/pelletier/lein-dynamic-version","last_synced_at":"2025-04-11T03:02:04.284Z","repository":{"id":62433342,"uuid":"81275337","full_name":"pelletier/lein-dynamic-version","owner":"pelletier","description":"A Leiningen plugin to populate the :version field of your lein project dynamically","archived":false,"fork":false,"pushed_at":"2018-11-19T16:29:12.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T00:42:31.000Z","etag":null,"topics":["clojure","leiningen"],"latest_commit_sha":null,"homepage":"https://github.com/pelletier/lein-dynamic-version","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pelletier.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-02-08T01:51:38.000Z","updated_at":"2018-11-19T16:29:13.000Z","dependencies_parsed_at":"2022-11-01T20:45:48.914Z","dependency_job_id":null,"html_url":"https://github.com/pelletier/lein-dynamic-version","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelletier%2Flein-dynamic-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelletier%2Flein-dynamic-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelletier%2Flein-dynamic-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelletier%2Flein-dynamic-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pelletier","download_url":"https://codeload.github.com/pelletier/lein-dynamic-version/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247856541,"owners_count":21007620,"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":["clojure","leiningen"],"created_at":"2024-10-13T14:17:13.437Z","updated_at":"2025-04-11T03:02:04.261Z","avatar_url":"https://github.com/pelletier.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lein-dynamic-version\n\nA Leiningen plugin to populate the `:version` field of your lein project dynamically.\n\n[![Clojars Project](https://img.shields.io/clojars/v/lein-dynamic-version.svg)](https://clojars.org/lein-dynamic-version)\n[![Build Status](https://travis-ci.org/pelletier/lein-dynamic-version.svg?branch=master)](https://travis-ci.org/pelletier/lein-dynamic-version)\n\n## Usage\n\nPut `[lein-dynamic-version \"0.1.0\"]` (or the newest version) into the `:plugins` vector of your project.clj.\nFrom then on, dynamic-version will replace the `:version` field of the project automatically.\n\n## How it works\n\nThis is simply a lein middleware that goes through a list of \"loaders\", which define how to fetch the number version. The first version returned by a loader is used to replace the `:version` key of the lein project definition.\n\n## Configuration\n\nYou can set a `:dynamic-version` key to your project which contains any of the following entries:\n\n#### `:env`\n\nFetch the version from an environment variable.\n\nExample:\n\n```clj\n:dynamic-version {:env \"FOO\"}\n```\n\nThis will use the environment variable `FOO` to populate the version.\n\n#### `:file`\n\nFetch the version from a file on the filesystem.\n\n##### Example\n\n```clj\n:dynamic-version {:file \"../VERSION\"}\n```\n\n\n#### `:order`\n\nA vector that contains the loaders names in order they should be used. Existing loaders are:\n\n* `:env` - load version from an environment variable\n* `:file` - load version from a file\n* `:default` - use the version specified in the project.clj file\n\n##### Default\n\n`[:env :file :default]`\n\n##### Example\n\nLoad from a file, and themm default:\n\n```clj\n:dynamic-version {:order [:file :default]}\n```\n\n## License\n\nCopyright © 2017 Thomas Pelletier\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelletier%2Flein-dynamic-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpelletier%2Flein-dynamic-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelletier%2Flein-dynamic-version/lists"}