This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-08
Channels
- # announcements (32)
- # aws (2)
- # babashka (21)
- # beginners (143)
- # cider (3)
- # cljsrn (13)
- # clojure (65)
- # clojure-dev (7)
- # clojure-europe (20)
- # clojure-losangeles (8)
- # clojure-nl (13)
- # clojure-norway (39)
- # clojure-uk (9)
- # clojurescript (39)
- # code-reviews (10)
- # conjure (2)
- # cursive (3)
- # datascript (6)
- # datomic (40)
- # events (5)
- # exercism (23)
- # fulcro (9)
- # funcool (2)
- # girouette (2)
- # graphql (4)
- # helix (8)
- # improve-getting-started (4)
- # integrant (7)
- # introduce-yourself (5)
- # jobs (3)
- # luminus (32)
- # malli (3)
- # off-topic (10)
- # pathom (9)
- # pedestal (4)
- # polylith (25)
- # practicalli (1)
- # re-frame (4)
- # sci (3)
- # shadow-cljs (5)
- # tools-deps (25)
- # vim (31)
- # xtdb (32)
can find-versions
also work for non jar artifacts?
I tried to find the versions for a published zip and I get no results.
Checked the source code and it's not supported.
Maven is an artifact repositoy and in essence you can store whatever artifacts there.
Most of them are jars, but they don't need to be.
Also: can it work for classifiers as well ? Don't use them right now, I'm asking for completion sake.
It is jar only, although you are conceptually correct
It might work for classifiers, which we do support, can’t actually say that I thought about it. Did you try it?
I did not try with classifier since I don't use it now - I can probably find a dependency online that has classifier and try with that
The syntax is group/artifact$classifier
does tools-deps take into account encrypted server passwords from settings-security.xml
?
Browsed the code and I did not see any references so I imagine it does not.
We use the Maven apis to access those, so not sure if we are getting that support or not. Probably not would be my guess
Is there a way I can get the latest version of an artifact ? I tried this but it does not work ( I get the older version)
:deps {com.my.group.example-artifact/load-test-data {:mvn/version "LATEST" :extension "zip"}}}}
find-versions
.resolve-deps
?LATEST or RELEASE should resolve metadata
I think it is subject to the once-per-day update policy though
No ways to force that other than deleting repo metadata files from m2
But that :extension is not a thing
Tools.deps is not a generic interface to Maven, it’s a tool for building classpaths
If I remember correctly updatePolicy can be configured per maven repository in pom.xml
So maybe tools.deps could have a way to configure that in deps.esn
Somewhere in :mvn/repos
Has been requested, and I even wrote the code at one point, but I’m going to resist that for now
It adds a lot of complexity to other assumptions in the code
If you want to get non-jars, you’re going to have to tap into a much lower point in the implementation
This is not part of the public api