Fork me on GitHub
#announcements
<
2022-11-15
>
greglook02:11:37

I've been playing with tools.deps recently and updating some of my projects as a way to learn the new tools better. A long, long time ago I wrote lein-hiera as one of my first Leiningen plugins, to help me understand the structure of my code. I've rewritten lein-hiera (now clj-hiera) so that it's primarily a simple library namespace which is easy to consume from the clj CLI as either a gitlib or as a stand-alone "tool". The plugin just bundles the library code now and does some lightweight wrapping to make the lein hiera command work. If you've ever wanted a graph of your namespace dependencies, give it a shot! https://github.com/greglook/clj-hiera

šŸŽ‰ 10
gratitude 3
Alex Miller (Clojure team)02:11:49

very cool! worked for me, but seems like it uses your default :sources instead of the :paths from your deps.edn (for me it scooped in my tests too - which are both under src/ in standard maven layout)

greglook02:11:19

Ah, yeah the non leiningen default is a naive #{"src"} - open to making that smarter

borkdude10:11:08

https://github.com/borkdude/rewrite-edn: utility lib on top of https://github.com/clj-commons/rewrite-clj with common operations to update EDN while preserving whitespace and comments. 0.4.5 ā€¢ Add conj: (str (r/update (r/parse-string "{:a [1 2 3]}") :a r/conj 1)) ;;=> "{:a [1 2 3 1]}" (https://github.com/zerg000000) ā€¢ Add fnil: (str (r/update (r/parse-string "{:a [1 2 3]}") :b (r/fnil r/conj []) 1)) ;;=> "{:a [1 2 3] :b [1]}"

šŸ‘ 16
1
Alex Miller (Clojure team)14:11:58

Set of releases to add support for repository policies in deps.edn: ā€¢ https://github.com/clojure/tools.deps.alpha 0.15.1254 ā€¢ https://github.com/clojure/tools.tools v0.2.9 ā€¢ https://clojure.org/releases/tools#v1.11.1.1200 1.11.1.1200 ā€¢ https://github.com/clojure/tools.build v0.8.5 9c738da

šŸŽ‰ 14
Alex Miller (Clojure team)15:11:16

In most cases, the default policies are fine, but if you need this, an example of how this looks:

{:mvn/repos
 {"my-releases" {:url ""
                 :snapshots {:enabled false}
				 :releases {:enabled true
				            :update :daily
							:checksum :fail}}}}
These policies will be output with -Spom or -X:deps mvn-pom or write-pom in tools.build when generating a pom.xml. More docs here: https://clojure.org/reference/deps_and_cli#_maven (although I see the bullet formatting is off, so fixing that still)

richiardiandrea19:11:57

Releasing our first library here at Cohesic! It is a set of helpers for XTDB, especially around undo/revert of an entity https://github.com/cohesic/cohesic-xtdb https://cohesic.github.io/cohesic-xtdb/

šŸŽ‰ 12
blob_thumbs_up 1