This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-04
Channels
- # announcements (7)
- # babashka (26)
- # babashka-sci-dev (19)
- # beginners (66)
- # calva (4)
- # clj-kondo (55)
- # cljs-dev (173)
- # cljsrn (17)
- # clojure (86)
- # clojure-art (3)
- # clojure-australia (1)
- # clojure-europe (24)
- # clojure-india (1)
- # clojure-nl (3)
- # clojure-uk (6)
- # clojured (5)
- # clojurescript (39)
- # cursive (8)
- # data-oriented-programming (20)
- # datomic (9)
- # emacs (10)
- # events (1)
- # figwheel-main (16)
- # fulcro (33)
- # gratitude (1)
- # helix (2)
- # hugsql (2)
- # jobs (2)
- # kaocha (4)
- # leiningen (5)
- # lsp (110)
- # malli (1)
- # missionary (17)
- # observability (3)
- # re-frame (10)
- # reagent (1)
- # reitit (7)
- # rewrite-clj (3)
- # shadow-cljs (63)
- # sql (19)
- # tools-build (74)
- # tools-deps (32)
- # transit (1)
- # xtdb (5)
dos anyone know the particular ordering of release tasks to make lein release
release as the level given? i would like to be able to say lein release minor
and have it bump the minor component, commit, and tag that. releasing the current snapshot and bumping the component for the next snapshot is not a super intuitive behavior for me. some examples of what i mean 🧵
what i would like is
lein release major: 1.1.1-SNAPSHOT -> 2.0.0
lein release minor: 1.1.1-SNAPSHOT -> 1.2.0
lein release patch: 1.1.1-SNAPSHOT -> 1.1.2
You could try something like this
(defproject "project-name" "1.1.1-SNAPSHOT"
:release-tasks [["vcs" "assert-committed"]
["change" "version" "leiningen.release/bump-version"]
["change" "version" "leiningen.release/bump-version" "release"]
["vcs" "commit"]
["vcs" "tag"]
["deploy"]
["change" "version" "leiningen.release/bump-version"]
["vcs" "commit" "next dev version"]
["vcs" "push"]
]
)
and then
> lein release :major
should lead to "2.0.0" version.