{"id":13609272,"url":"https://github.com/borkdude/lein2deps","last_synced_at":"2025-08-22T00:32:16.539Z","repository":{"id":63624380,"uuid":"551364986","full_name":"borkdude/lein2deps","owner":"borkdude","description":"Lein project.clj to deps.edn converter","archived":false,"fork":false,"pushed_at":"2023-08-24T07:23:05.000Z","size":31,"stargazers_count":66,"open_issues_count":2,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-29T16:45:30.248Z","etag":null,"topics":["babashka","clojure","leiningen","tools-deps"],"latest_commit_sha":null,"homepage":"","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/borkdude.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}},"created_at":"2022-10-14T09:06:50.000Z","updated_at":"2024-09-29T07:37:37.000Z","dependencies_parsed_at":"2024-01-14T06:56:15.368Z","dependency_job_id":null,"html_url":"https://github.com/borkdude/lein2deps","commit_stats":{"total_commits":36,"total_committers":3,"mean_commits":12.0,"dds":0.08333333333333337,"last_synced_commit":"4f6d4a0140ddea10c5ac28cc24b49643660f42f6"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borkdude%2Flein2deps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borkdude%2Flein2deps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borkdude%2Flein2deps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borkdude%2Flein2deps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borkdude","download_url":"https://codeload.github.com/borkdude/lein2deps/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230542288,"owners_count":18242332,"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":["babashka","clojure","leiningen","tools-deps"],"created_at":"2024-08-01T19:01:33.740Z","updated_at":"2024-12-20T06:07:10.919Z","avatar_url":"https://github.com/borkdude.png","language":"Clojure","funding_links":[],"categories":["Clojure"],"sub_categories":[],"readme":"# lein2deps\n\nA leiningen `project.clj` to Clojure CLI `deps.edn` converter.\n\n## [API](API.md)\n\n## Usage\n\nWith [babashka](https://babashka.org/):\n\n``` shell\nbb -Sdeps '{:deps {io.github.borkdude/lein2deps {:git/sha \"...\"}}}' \\\n   -m lein2deps.api --print --write-file deps.edn\n```\n\nWith [bbin](https://github.com/babashka/bbin):\n\n``` shell\nbbin install https://raw.githubusercontent.com/borkdude/tools/main/lein2deps.clj\nlein2deps --print --write-file deps.edn\n```\n\nWith Clojure:\n\n``` shell\nclj -Sdeps '{:deps {io.github.borkdude/lein2deps {:git/sha \"...\"}}}' \\\n    -M -m lein2deps.api --print --write-file deps.edn\n```\n\nWith Clojure CLI Tools:\n\n``` shell\nclojure -Ttools install-latest :lib io.github.borkdude/lein2deps :as lein2deps\n\nclojure -Tlein2deps lein2deps :print true :write-file \"deps.edn\"\n```\n\n## Java compilation\n\nThis tool respects `:java-source-paths` in `project.clj` and adds a `:deps/prep-lib`\nentry to your `deps.edn` so users of your project will have to execute:\n\n```\nclj -X:deps prep\n```\n\nto compile Java sources before being able to use your project.\n\nFor some reason this doesn't work from inside the project. To compile Java locally:\n\n``` shell\nclojure -X:lein2deps compile-java\n```\n\n## Lein plugin\n\nYou can use the leiningen plugin to automatically synchronize your `project.clj` to a `deps.edn`.\n\nAdd:\n\n``` clojure\n:plugins [[io.github.borkdude/lein-lein2deps \"0.1.0\"]]\n```\n\nto your `project.clj` and then run:\n\n``` shell\nlein lein2deps --write-file deps.edn --print false\n```\n\nTo run the plugin on any invocation of `lein`, add it to `:prep-tasks`:\n\n``` clojure\n(defproject my-project \"0.1.0\"\n  :plugins [[io.github.borkdude/lein-lein2deps \"0.1.0\"]]\n  :dependencies [[org.clojure/clojure \"1.11.1\"]]\n  :prep-tasks [[\"lein2deps\" \"--write-file\" \"deps.edn\" \"--print\" \"false\"]])\n```\n\n## Test runner\n\nCheck out [neil](https://github.com/babashka/neil#add-test) for easily adding a test runner to `deps.edn`.\n\n## How to proceed\n\nIf you are new to `deps.edn`, check out [this blog article](https://blog.michielborkent.nl/new-clojure-project-quickstart.html) on how to get started quickly.\n\n## License\n\nCopyright (c) 2022 Michiel Borkent.\n\nLicensed under MIT, see [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborkdude%2Flein2deps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborkdude%2Flein2deps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborkdude%2Flein2deps/lists"}