{"id":22196655,"url":"https://github.com/druids/lein-bake-git-info","last_synced_at":"2025-03-24T22:40:12.756Z","repository":{"id":62433331,"uuid":"127148335","full_name":"druids/lein-bake-git-info","owner":"druids","description":"A Leiningen plugin that bakes a git information into JAR file","archived":false,"fork":false,"pushed_at":"2018-05-28T12:12:34.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T02:14:11.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/druids.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}},"created_at":"2018-03-28T13:56:38.000Z","updated_at":"2018-05-28T12:12:35.000Z","dependencies_parsed_at":"2022-11-01T21:16:00.964Z","dependency_job_id":null,"html_url":"https://github.com/druids/lein-bake-git-info","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/druids%2Flein-bake-git-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Flein-bake-git-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Flein-bake-git-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Flein-bake-git-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/druids","download_url":"https://codeload.github.com/druids/lein-bake-git-info/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245366207,"owners_count":20603438,"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-12-02T14:16:00.267Z","updated_at":"2025-03-24T22:40:12.736Z","avatar_url":"https://github.com/druids.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"lein-bake-git-info\n=================\n\nA Leiningen plugin that bakes a git information into a JAR file. This plugin takes a GIT information and updates a JAR\n within the information. The main purpose of this plugin is to \"hard-code\" a GIT information into a JAR file,\n thus you will ever know from which revision is the JAR created. The plugin is usually called after a JAR creation\n (e.g. `lein uberjar`). The plugin takes a GIT info (currently a revision and tag) from a host repository, composes\n a git info message, and replaces a placeholder (in a file) in a target JAR.\n\n[![Dependencies Status](https://jarkeeper.com/druids/lein-bake-git-info/status.png)](https://jarkeeper.com/druids/lein-bake-git-info)\n[![License](https://img.shields.io/badge/MIT-Clause-blue.svg)](https://opensource.org/licenses/MIT)\n\n\nLeiningen/Boot\n--------------\nAdd following line into a project's `:plugins`\n\n```clojure\n[lein-bake-git-info \"0.3.0\"]\n```\n\nUsage\n-----\n\nWhen a JAR file is created just call `lein bake-git-info`. You should see an info message in a console like\n `bake-git-info\u003e Bumped: 0.1.0#f55389107489994f674e448d56659f13d32d833b 2018.04.09 17:41:27`\n in case that `:verbose?` is not set to `false`.\n\nDocumentation\n-------------\n\nBy default the plugin replaces `BAKE_GIT_INFO_PLACEHOLDER` by a git info message with datetime format\n `yyyy.MM.dd HH:mm:ss` on path `\u003cproject-name\u003e/config.edn` in `target/application.jar`.\n\n\nOptions:\n\n* `:placeholder` a string that will be replaced by a git info message, default `\"BAKE_GIT_INFO_PLACEHOLDER\"`\n* `:datetime-format` a string of a format, default is `\"yyyy.MM.dd HH:mm:ss\"`\n* `:config-name` a name of a file that contains the placeholder string, default `\"config.edn\"`\n* `:verbose?` when true, it displays a message when a message is baked in a JAR, default `true`\n* `:project-dir` a folder name where the config exists, default a project name\n* `:jar-name` a name of a JAR, default a value from `:uberjar-name` or `\"application.jar\"`\n\nAll options above can be set in `project.clj` under `:bake-git-info` key. E.g.:\n\n```clojure\n(defproject myapp \"0.1.0\"\n  :bake-git-info {:placeholder \"CUSTOMER_PLACEHOLDER\"})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdruids%2Flein-bake-git-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdruids%2Flein-bake-git-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdruids%2Flein-bake-git-info/lists"}