diff --git a/components/version/src/polylith/clj/core/version/interface.clj b/components/version/src/polylith/clj/core/version/interface.clj index b51a47f62..f26643eb8 100644 --- a/components/version/src/polylith/clj/core/version/interface.clj +++ b/components/version/src/polylith/clj/core/version/interface.clj @@ -24,8 +24,8 @@ (def major 0) (def minor 2) (def patch 19) -(def revision SNAPSHOT) ;; Set to SNAPSHOT or RELEASE. -(def snapshot 10) ;; Increase by one for every snapshot release, or set to 0 if a release. +(def revision RELEASE) ;; Set to SNAPSHOT or RELEASE. +(def snapshot 0) ;; Increase by one for every snapshot release, or set to 0 if a release. ;; Also update :snapshot-version: at the top of readme.adoc. (def snapshot? (= SNAPSHOT revision)) @@ -37,7 +37,7 @@ (def tool (if system/extended? "polyx" "poly")) -(def date "2024-02-13") +(def date "2024-02-16") ;; Execute 'poly doc version' to see when different changes was introduced. (def api-version {:breaking 1, :non-breaking 0}) diff --git a/doc/commands.adoc b/doc/commands.adoc index 6432c8c80..8ad4e36b2 100644 --- a/doc/commands.adoc +++ b/doc/commands.adoc @@ -14,7 +14,7 @@ poly help [source,text] ---- - poly 0.2.19 (2024-02-10) - https://github.com/polyfy/polylith + poly 0.2.19 (2024-02-16) - https://github.com/polyfy/polylith poly CMD [ARGS] - where CMD [ARGS] are: diff --git a/examples/doc-example/ws.edn b/examples/doc-example/ws.edn index 1bce8d6dd..85755b0bd 100644 --- a/examples/doc-example/ws.edn +++ b/examples/doc-example/ws.edn @@ -49,7 +49,7 @@ :base-deps {:src [], :test []}}], :changes {:since "stable", - :since-sha "7d7e4a688f86c957d56520df55e2200de9e5e92f", + :since-sha "1512994c65dd450f3bc8a162862fad8f64faf386", :since-tag "stable-lisa", :changed-files ["bases/user-api/deps.edn" @@ -65,7 +65,7 @@ "projects/user-service/deps.edn" "workspace.edn"], :git-diff-command - "git diff 7d7e4a688f86c957d56520df55e2200de9e5e92f --name-only", + "git diff 1512994c65dd450f3bc8a162862fad8f64faf386 --name-only", :changed-components ["user-remote"], :changed-bases ["user-api"], :changed-projects ["command-line" "user-service"], @@ -316,7 +316,7 @@ :projects [{:lines-of-code {:src 0, :test 13, :total {:src 42, :test 24}}, :deps-filename - "/private/var/folders/_0/7sl6982d6l7bzdlypmk308kw0000gn/T/polylith-example-2024-02-10-131214/ws/example/projects/command-line/deps.edn", + "/private/var/folders/_0/7sl6982d6l7bzdlypmk308kw0000gn/T/polylith-example-2024-02-16-050715/ws/example/projects/command-line/deps.edn", :namespaces {:test [{:name "project.command-line.test-setup", @@ -361,7 +361,7 @@ "clojars" {:url "https://repo.clojars.org/"}}, :alias "cl", :project-dir - "/private/var/folders/_0/7sl6982d6l7bzdlypmk308kw0000gn/T/polylith-example-2024-02-10-131214/ws/example/projects/command-line", + "/private/var/folders/_0/7sl6982d6l7bzdlypmk308kw0000gn/T/polylith-example-2024-02-16-050715/ws/example/projects/command-line", :lib-deps {:src {"org.clojure/clojure" @@ -389,7 +389,7 @@ "user-remote" {:src {}, :test {}}}} {:lines-of-code {:src 0, :test 0, :total {:src 44, :test 26}}, :deps-filename - "/private/var/folders/_0/7sl6982d6l7bzdlypmk308kw0000gn/T/polylith-example-2024-02-10-131214/ws/example/projects/user-service/deps.edn", + "/private/var/folders/_0/7sl6982d6l7bzdlypmk308kw0000gn/T/polylith-example-2024-02-16-050715/ws/example/projects/user-service/deps.edn", :namespaces {}, :base-names {:src ["user-api"], :test ["user-api"]}, :lib-imports @@ -420,7 +420,7 @@ "clojars" {:url "https://repo.clojars.org/"}}, :alias "user-s", :project-dir - "/private/var/folders/_0/7sl6982d6l7bzdlypmk308kw0000gn/T/polylith-example-2024-02-10-131214/ws/example/projects/user-service", + "/private/var/folders/_0/7sl6982d6l7bzdlypmk308kw0000gn/T/polylith-example-2024-02-16-050715/ws/example/projects/user-service", :lib-deps {:src {"org.clojure/clojure" @@ -442,7 +442,7 @@ "user" {:src {}, :test {}}}} {:lines-of-code {:src 4, :test 0, :total {:src 58, :test 38}}, :deps-filename - "/private/var/folders/_0/7sl6982d6l7bzdlypmk308kw0000gn/T/polylith-example-2024-02-10-131214/ws/example/deps.edn", + "/private/var/folders/_0/7sl6982d6l7bzdlypmk308kw0000gn/T/polylith-example-2024-02-16-050715/ws/example/deps.edn", :namespaces {:src [{:name "dev.lisa", @@ -486,7 +486,7 @@ "clojars" {:url "https://repo.clojars.org/"}}, :alias "dev", :project-dir - "/private/var/folders/_0/7sl6982d6l7bzdlypmk308kw0000gn/T/polylith-example-2024-02-10-131214/ws/example/development", + "/private/var/folders/_0/7sl6982d6l7bzdlypmk308kw0000gn/T/polylith-example-2024-02-16-050715/ws/example/development", :unmerged {:paths {:src @@ -535,11 +535,11 @@ :is-git-repo true, :branch "main", :git-root - "/private/var/folders/_0/7sl6982d6l7bzdlypmk308kw0000gn/T/polylith-example-2024-02-10-131214/ws/example", + "/private/var/folders/_0/7sl6982d6l7bzdlypmk308kw0000gn/T/polylith-example-2024-02-16-050715/ws/example", :auto-add true, :stable-since {:tag "stable-lisa", - :sha "7d7e4a688f86c957d56520df55e2200de9e5e92f"}, + :sha "1512994c65dd450f3bc8a162862fad8f64faf386"}, :polylith {:repo "https://github.com/polyfy/polylith.git", :branch "master"}}, :top-namespace "se.example", @@ -587,19 +587,18 @@ :unnamed-args []}, :version {:release - {:name "0.2.19-SNAPSHOT", + {:name "0.2.19", :tool "poly", :major 0, :minor 2, :patch 19, - :revision "SNAPSHOT", - :date "2024-02-10", - :snapshot 7}, + :revision "", + :date "2024-02-13"}, :api {:breaking 1, :non-breaking 0}, :test-runner-api {:breaking 1, :non-breaking 0}, :ws {:breaking 3, :non-breaking 0}}, :ws-dir - "/private/var/folders/_0/7sl6982d6l7bzdlypmk308kw0000gn/T/polylith-example-2024-02-10-131214/ws/example", + "/private/var/folders/_0/7sl6982d6l7bzdlypmk308kw0000gn/T/polylith-example-2024-02-16-050715/ws/example", :ws-reader {:name "polylith-clj", :project-url "https://github.com/polyfy/polylith", diff --git a/next-release.adoc b/next-release.adoc index 3f8c6c56a..cc0520f70 100644 --- a/next-release.adoc +++ b/next-release.adoc @@ -1,13 +1,13 @@ -== Included in 0.2.19-SNAPSHOT +== Included since 0.2.18 [cols="10,100"] |=== | Issue | Description | https://github.com/polyfy/polylith/issues/315[315] -| Moved `:change:project-to-\*` keys to `:projects:PROJECT:\*`, and `:settings:profile-to-settings` to `:profiles`, in the workspace structure + some other changes, documented https://cljdoc.org/d/polylith/clj-poly/0.2.19-SNAPSHOT/doc/versions[here]. +| Moved `:change:project-to-\*` keys to `:projects:PROJECT:\*`, and `:settings:profile-to-settings` to `:profiles`, in the workspace structure + some other changes, documented https://cljdoc.org/d/polylith/clj-poly/0.2.19/doc/versions[here]. This clean up of the workspace structure was introduced to simplify future maintenance. It unfortunately broke the Test Runner contract (tests has been added, so this hopefully will not happen again). The good part is that the improved inner workspace structure will make it easier to implement test runners in the future . We decided to skip the idea of storing project and brick configuration in separate files because it made it harder to edit it and get an overview (they can still be found in `:projects` and `:bricks` in `workspace.edn`). @@ -32,9 +32,9 @@ We decided to skip the idea of storing project and brick configuration in separa |=== | Other changes -| If you use a https://cljdoc.org/d/polylith/clj-poly/0.2.19-SNAPSHOT/doc/test-runners[test runner] other than the built-in one, make sure to use at least 0.8.4 of the Kaocha test runner, and 0.4.0 of the External test runner. +| If you use a https://cljdoc.org/d/polylith/clj-poly/0.2.19/doc/test-runners[test runner] other than the built-in one, make sure to use at least 0.8.4 of the Kaocha test runner, and 0.4.0 of the External test runner. -| Reintroduced the global `:test` key in `:settings` in the workspace structure (taken from workspace.edn), see https://cljdoc.org/d/polylith/clj-poly/0.2.19-SNAPSHOT/doc/versions[versions] (bug fix). +| Reintroduced the global `:test` key in `:settings` in the workspace structure (taken from workspace.edn), see https://cljdoc.org/d/polylith/clj-poly/0.2.19/doc/versions[versions] (bug fix). | Make sure we also update libraries for the development project when we execute `poly libs :update` (bug fix). @@ -43,7 +43,7 @@ name clashes for the users of the https://clojars.org/polylith/clj-poly[clj-poly | Added `check` and `test` functions to the https://clojars.org/polylith/clj-poly[clj-poly] API. -| Custom data can be stored in the reserved `:custom` key at the root of `workspace.edn` and under each project and brick, see https://cljdoc.org/d/polylith/clj-poly/0.2.19-SNAPSHOT/doc/configuration?q=custom#custom[custom configuration]. +| Custom data can be stored in the reserved `:custom` key at the root of `workspace.edn` and under each project and brick, see https://cljdoc.org/d/polylith/clj-poly/0.2.19/doc/configuration?q=custom#custom[custom configuration]. | The https://github.com/polyfy/polylith/tree/master/examples/test-runners[test-runners] example project was added. It uses the https://github.com/imrekoszo/polylith-kaocha[Kaocha] and https://github.com/seancorfield/polylith-external-test-runner[External] test runners, and is executed before we make a release (from https://github.com/polyfy/polylith/blob/master/scripts/create_example.clj[create-example]) to reduce the risk that we break the Test Runner API in the future. @@ -52,7 +52,7 @@ its own deps.edn file (created by https://github.com/polyfy/polylith/releases/ta | Print a deprecation message if the shorter form of "create component/project/workspace" is used, e.g. `create c name:mycomp`. -| Print a deprecation message if `::` is used (that looks up the workspace root). This feature will be removed in the future, and the reason is that it's no longer needed since we introduced the https://cljdoc.org/d/polylith/clj-poly/0.2.19-SNAPSHOT/doc/shell[shell] command. +| Print a deprecation message if `::` is used (that looks up the workspace root). This feature will be removed in the future, and the reason is that it's no longer needed since we introduced the https://cljdoc.org/d/polylith/clj-poly/0.2.19/doc/shell[shell] command. | Make sure we can create a workspace, even if it exists a non-polylith deps.edn file at the root. |=== @@ -62,18 +62,18 @@ its own deps.edn file (created by https://github.com/polyfy/polylith/releases/ta | Converted this documentation from next-release.txt to https://asciidoc.org[AsciiDoc]. -| Fixed three broken images on the https://cljdoc.org/d/polylith/clj-poly/0.2.19-SNAPSHOT/doc/testing[Testing] page. +| Fixed three broken images on the https://cljdoc.org/d/polylith/clj-poly/0.2.19/doc/testing[Testing] page. | Show snapshot number, e.g. `0.2.19-SNAPSHOT #7` for the badge at the top of the https://cljdoc.org/d/polylith/clj-poly/0.2.19-SNAPSHOT/doc/readme[start page] for snapshot releases. -| Added a https://cljdoc.org/d/polylith/clj-poly/0.2.19-SNAPSHOT/doc/component#expose-code-outside-workspace[warning] that you should use a more unique prefix (lib name) for your bricks in project `deps.edn` files, if the code is exposed outside the workspace, e.g. as a library. Thanks https://github.com/imrekoszo[Imre Kószó] for pointing this out! +| Added a https://cljdoc.org/d/polylith/clj-poly/0.2.19/doc/component#expose-code-outside-workspace[warning] that you should use a more unique prefix (lib name) for your bricks in project `deps.edn` files, if the code is exposed outside the workspace, e.g. as a library. Thanks https://github.com/imrekoszo[Imre Kószó] for pointing this out! -| Added a https://cljdoc.org/d/polylith/clj-poly/0.2.19-SNAPSHOT/doc/shell#refresh-ws[tip] on how to refresh your workspace from a shell. +| Added a https://cljdoc.org/d/polylith/clj-poly/0.2.19/doc/shell#refresh-ws[tip] on how to refresh your workspace from a shell. -| Added a note that https://cljdoc.org/d/polylith/clj-poly/0.2.19-SNAPSHOT/doc/shell#read-old-workspace[old workspaces] can be read by the tool (both from exported files and from disk). +| Added a note that https://cljdoc.org/d/polylith/clj-poly/0.2.19/doc/shell#read-old-workspace[old workspaces] can be read by the tool (both from exported files and from disk). -| Added https://medium.com/qantas-engineering-blog/leveraging-polylith-to-improve-consistency-reduce-complexity-and-increase-changeability-2031dd3d5f3d[Leveraging Polylith to improve consistency, reduce complexity and increase changeability] to the list of https://cljdoc.org/d/polylith/clj-poly/0.2.19-SNAPSHOT/doc/doc#_blog_posts[blog posts]. These can also be accessed by the doc command. +| Added https://medium.com/qantas-engineering-blog/leveraging-polylith-to-improve-consistency-reduce-complexity-and-increase-changeability-2031dd3d5f3d[Leveraging Polylith to improve consistency, reduce complexity and increase changeability] to the list of https://cljdoc.org/d/polylith/clj-poly/0.2.19/doc/doc#_blog_posts[blog posts]. These can also be accessed by the doc command. -| Added https://cljdoc.org/d/polylith/clj-poly/0.2.19-SNAPSHOT/doc/example-systems#_demo_rama_electric[Demo Rama Electric] to the list of example systems. +| Added https://cljdoc.org/d/polylith/clj-poly/0.2.19/doc/example-systems#_demo_rama_electric[Demo Rama Electric] to the list of example systems. |=== diff --git a/readme.adoc b/readme.adoc index d7ce8c79c..dc2f98f87 100644 --- a/readme.adoc +++ b/readme.adoc @@ -1,11 +1,11 @@ image::doc/images/logo.png[width=400] -:snapshot-version: 10 +:snapshot-version: 0 :cljdoc-doc-url: https://cljdoc.org/d/polylith/clj-poly/CURRENT/doc -https://cljdoc.org/d/polylith/clj-poly/0.2.18/doc/readme[image:https://badgen.net/badge/doc/0.2.18/blue[]] -ifdef::env-cljdoc[] -https://cljdoc.org/d/polylith/clj-poly/0.2.19-SNAPSHOT[image:https://badgen.net/badge/doc/0.2.19-SNAPSHOT%20%23{snapshot-version}/cyan[]] -endif::[] +https://cljdoc.org/d/polylith/clj-poly/0.2.19/doc/readme[image:https://badgen.net/badge/doc/0.2.19/blue[]] +// ifdef::env-cljdoc[] +// https://cljdoc.org/d/polylith/clj-poly/0.2.19-SNAPSHOT[image:https://badgen.net/badge/doc/0.2.19-SNAPSHOT%20%23{snapshot-version}/cyan[]] +//endif::[] https://clojurians.slack.com/messages/C013B7MQHJQ[image:https://badgen.net/badge/slack/join chat/green[]] == Welcome to the wonderful world of Polylith for Clojure! diff --git a/scripts/create_example.clj b/scripts/create_example.clj index c12c6d1d7..c66428969 100644 --- a/scripts/create_example.clj +++ b/scripts/create_example.clj @@ -373,7 +373,7 @@ ;; 3. Checkout latest workspace structure 2.x (status/line :head "Read workspace 2.0") - (shell "git checkout v0.2.18") + (shell "git checkout v0.2.19") (shell "git clean -fdX") (poly {:out (out "info-2.txt")} "info fake-sha:40d2f62 :no-changes color-mode:none") (poly {:out (out "libs-2.txt")} "libs color-mode:none") diff --git a/scripts/output/help/help.txt b/scripts/output/help/help.txt index c84acb348..4de413de8 100644 --- a/scripts/output/help/help.txt +++ b/scripts/output/help/help.txt @@ -1,4 +1,4 @@ - poly 0.2.19 (2024-02-10) - https://github.com/polyfy/polylith + poly 0.2.19 (2024-02-16) - https://github.com/polyfy/polylith poly CMD [ARGS] - where CMD [ARGS] are: diff --git a/scripts/output/local-dep-old-format/ws.edn b/scripts/output/local-dep-old-format/ws.edn index 3671f4f23..1c4fd93c6 100644 --- a/scripts/output/local-dep-old-format/ws.edn +++ b/scripts/output/local-dep-old-format/ws.edn @@ -860,14 +860,13 @@ :is-no-exit false}, :version {:release - {:name "0.2.19-SNAPSHOT", + {:name "0.2.19", :tool "poly", :major 0, :minor 2, :patch 19, - :revision "SNAPSHOT", - :date "2024-02-10", - :snapshot 7}, + :revision "", + :date "2024-02-16"}, :api {:breaking 1, :non-breaking 0}, :test-runner-api {:breaking 1, :non-breaking 0}, :ws {:breaking 3, :non-breaking 0}, diff --git a/scripts/output/local-dep/ws.edn b/scripts/output/local-dep/ws.edn index 0442ac881..b819fd8bb 100644 --- a/scripts/output/local-dep/ws.edn +++ b/scripts/output/local-dep/ws.edn @@ -767,14 +767,13 @@ :is-no-exit false}, :version {:release - {:name "0.2.19-SNAPSHOT", + {:name "0.2.19", :tool "poly", :major 0, :minor 2, :patch 19, - :revision "SNAPSHOT", - :date "2024-02-10", - :snapshot 7}, + :revision "", + :date "2024-02-16"}, :api {:breaking 1, :non-breaking 0}, :test-runner-api {:breaking 1, :non-breaking 0}, :ws {:breaking 3, :non-breaking 0}},