{"id":28194278,"url":"https://github.com/monkey-projects/plugin-clj","last_synced_at":"2026-02-19T05:31:29.596Z","repository":{"id":216669599,"uuid":"741983457","full_name":"monkey-projects/plugin-clj","owner":"monkey-projects","description":"MonkeyCI plugin for clojure projects","archived":false,"fork":false,"pushed_at":"2025-09-26T09:58:57.000Z","size":57,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-26T10:26:36.023Z","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/monkey-projects.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-11T14:17:30.000Z","updated_at":"2025-09-26T09:59:01.000Z","dependencies_parsed_at":"2024-01-11T22:29:06.650Z","dependency_job_id":"44f6f07c-b478-4166-8df6-f47f61030b87","html_url":"https://github.com/monkey-projects/plugin-clj","commit_stats":null,"previous_names":["monkey-projects/plugin-clj"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/monkey-projects/plugin-clj","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Fplugin-clj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Fplugin-clj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Fplugin-clj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Fplugin-clj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monkey-projects","download_url":"https://codeload.github.com/monkey-projects/plugin-clj/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Fplugin-clj/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29604552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T05:11:50.834Z","status":"ssl_error","status_checked_at":"2026-02-19T05:11:38.921Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-05-16T13:11:47.570Z","updated_at":"2026-02-19T05:31:29.577Z","avatar_url":"https://github.com/monkey-projects.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MonkeyCI Clojure Plugin\n\nThis is a library that's meant as a plugin for [MonkeyCI](https://monkeyci.com) builds.\n\n[![Clojars Project](https://img.shields.io/clojars/v/com.monkeyci/plugin-clj.svg)](https://clojars.org/com.monkeyci/plugin-clj)\n\n## Getting Started\n\nAfter creating an account on [MonkeyCI](https://monkeyci.com), just include\nthe dependency in your `.monkeyci/deps.edn`:\n\n```clojure\n{:deps {com.monkeyci/plugin-clj {:mvn-version \"LATEST\"}}}\n```\n\nIt allows you to set up builds for Clojure projects with minimal code.\n\n## Library Builds\n\nA library is something that you want to deploy.  Either as a snapshot when you push to\nthe `main`branch, or when you push a tag, in which case the tag name will be used as\nthe release version.  You could optionally specify a regex that is applied to the tag\nname.  If the regex does not match, it is not considered to be a deployment.\n\nYou usually will want to run the unit tests, and if those succeed, proceed to publishing\nthe library.  That is what this plugin provides.\n\n### Clojure CLI\n\nIn order to use it in your build script when you use the [Clojure cli](https://clojure.org/reference/deps_and_cli),\njust use the `deps-library` function, like in this example build script:\n\n```clojure\n(require '[monkey.ci.plugin.clj :as p])\n\n(p/deps-library {:tag-regex p/version-regex})\n```\n\nThis is almost the most basic configuration.  You could also leave out the entire\nconfig map, if you want!  The `version-regex` matches any standard version tag\n(that looks like `x.x.x` or `x.x`).\n\nIt will run the unit tests, that are assumed to be declared as an alias function named\n`:test` in `deps.edn` (as a default).  If test results are written to a `junit.xml` file,\nthese will be parsed and added to the job results.  It reads all necessary information\nto deploy the library from the committed `pom.xml`.  These values can be overridden using\nconfig parameters.\n\n### Leiningen\n\nWhen using [Leiningen](https://leiningen.org), you use the `lein-library` function instead.\nIt works more or less the same as the CLI variant, but uses a differend container image and\ninvokes `lein` instead.  When publishing, the version is either taken from the `project.clj`\nfile, or from the commit tag.\n\n### Options\n\nThese are the options you can use to configure the library build:\n|Option|Default (cli)|Default (lein)|Description|\n|---|---|---|---|\n|`:tag-regex`|`#\".*\"`|`#\".*\"`|Regex to filter release tags|\n|`:clj-img`|`docker.io/clojure:temurin-\u003cversion\u003e-slim`|`docker.io/clojure:temurin-\u003cversion\u003e-lein-slim`|The image to use to test and publish.  Tag depends on lein or cli library and evolves with the lib version.  See `monkey.ci.plugin.clj/default-deps-img` or `monkey.ci.plugin.clj/default-lein-img`.|\n|`:test-job-id`|`test`|`test`|The id for the job that runs unit tests.|\n|`:publish-job-id`|`publish`|`publish`|The id for the job that publishes the library.|\n|`:test-alias`|`:test:junit`|`test-junit`|The alias to apply when building a library.|\n|`:artifact-id`|`test-junit`|`test-junit`|The id given to the artifact that holds test results|\n|`:junit-file`|`junit.xml`|`junit.xml`|The path of the junit results xml file|\n|`:publish-alias`|`:jar:publish`|`publish`|The alias to apply when publishing the library|\n|`:pom-file`|`pom.xml`|-|The location of the pom file, relative to the checkout dir.|\n|`:version-var`|`LIB_VERSION`|-|When publishing, the version will be stored in this env var.|\n\nSince this is Clojure, you can of course pick the parts you like.  The `...-library` functions just\nreturn jobs, to which you can add more, or you can include it in a larger job list.  Or you can call\nthe functions that have been provided to create the individual jobs.  See [the\nsource](src/monkey/ci/plugin/clj.clj) for this.\n\n## License\n\nCopyright (c) 2024 by Monkey Projects.\n[MIT License](LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkey-projects%2Fplugin-clj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonkey-projects%2Fplugin-clj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkey-projects%2Fplugin-clj/lists"}