{"id":16345012,"url":"https://github.com/ericdallo/deps-bin","last_synced_at":"2025-03-23T00:32:41.985Z","repository":{"id":53565859,"uuid":"350448501","full_name":"ericdallo/deps-bin","owner":"ericdallo","description":"A Clojure library that builds an executable containing a embedded jar inside","archived":false,"fork":false,"pushed_at":"2024-01-18T11:47:32.000Z","size":53,"stargazers_count":22,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T15:54:50.365Z","etag":null,"topics":["bin","cli","clojars","clojure","clojure-cli","deps","deps-edn","executable","library"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericdallo.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":"2021-03-22T18:28:11.000Z","updated_at":"2025-02-22T08:23:06.000Z","dependencies_parsed_at":"2024-10-28T15:38:50.682Z","dependency_job_id":null,"html_url":"https://github.com/ericdallo/deps-bin","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/ericdallo%2Fdeps-bin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericdallo%2Fdeps-bin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericdallo%2Fdeps-bin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericdallo%2Fdeps-bin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericdallo","download_url":"https://codeload.github.com/ericdallo/deps-bin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245040235,"owners_count":20551297,"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":["bin","cli","clojars","clojure","clojure-cli","deps","deps-edn","executable","library"],"created_at":"2024-10-11T00:29:40.480Z","updated_at":"2025-03-23T00:32:41.616Z","avatar_url":"https://github.com/ericdallo.png","language":"Clojure","readme":"[![Clojars Project](https://img.shields.io/clojars/v/com.github.ericdallo/deps-bin.svg)](https://clojars.org/com.github.ericdallo/deps-bin)\n\n# deps-bin\n\nA Clojure library that builds an executable containing a embedded jar inside.\nThis library is a `deps.edn` only alternative for [lein-binplus](https://github.com/BrunoBonacci/lein-binplus). It will create a executable file that exec `java -jar` with the provided jvm options, so you still need `java` on your `$PATH`.\n\nOn MS-Windows, the executable has a `.bat` extension, since technically it is a script calling java with an embedded jar file.\n\n## Usage\n\nTo generate a executable, simply merge:\n\n```clojure\n{:bin {:extra-deps {com.github.ericdallo/deps-bin {:mvn/version \"RELEASE\"}}\n       :exec-fn deps-bin.deps-bin/bin\n       :exec-args {:jar \"my-jar.jar\" \n                   :name \"my-bin\"}}}\n```\n\ninto your deps.edn, and build with:\n\n``` bash\n$ clojure -X:bin\n```\n\nand it should generate a executable that you can run with:\n\n``` bash\n./my-bin\n```\n\nIn this example, it expects that you have a jar `my-jar.jar`, you can generate it with [depstar](https://github.com/seancorfield/depstar), for example:\n\n``` bash\n$ clojure -X:jar \u0026\u0026 clojure -X:bin\n```\n\n## Other options\n\n- `:help` true              -- show this help (and exit)\n- `:jar` sym-or-str         -- specify the source name of the JAR file\n- `:name` sym-or-str        -- specify the name of the generated BIN file\n- `:skip-realign` true      -- if should skip byte alignment repair.\n- `:jvm-opts` [strs]        -- optional list of JVM options to use during bin executing\n- `:platforms` [kws]        -- optional list of platforms for which to emit bins, valid kws: :unix, :windows, defaults to system platform\n\n## Contribution\n\nContributions are very welcome, please open an issue or a pull request if inspired :)\n","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericdallo%2Fdeps-bin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericdallo%2Fdeps-bin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericdallo%2Fdeps-bin/lists"}