This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-08
Channels
- # aws-lambda (3)
- # beginners (27)
- # boot (4)
- # cljs-dev (26)
- # clojure (7)
- # clojure-spec (8)
- # clojure-uk (17)
- # clojurescript (1)
- # core-typed (2)
- # data-science (53)
- # datomic (24)
- # emacs (1)
- # fulcro (7)
- # luminus (1)
- # off-topic (2)
- # onyx (3)
- # pedestal (5)
- # planck (2)
- # portkey (50)
- # re-frame (15)
- # reagent (5)
- # reitit (2)
- # shadow-cljs (19)
- # tools-deps (15)
- # vim (2)
b) is absolutely useful. I use it to compile Clojure code against the IntelliJ classes, but not have them included when I run.
What would be the deps solution to that - two separate classpaths using aliases? I guess I’d need an alias for the IntelliJ classes and would have to use that when compiling but not running?
You seem to be describing using provided scope aliases in your own project (which is useful, but handled by aliases). The question I read above though sounded like how to include transitive provided-scope deps, which does not seem like a thing you should do
Yeah, I need b) for a similar tooling related concern
I want to load code from Artifact A which has a “provided” dependency B. Now I’d like to make sure all these dependencies are loaded without manually listing those “provided” deps. Hope that makes sense
Well, the whole point of provided scope is: you provide them
So, not going to make something to do this
dorab@dorab-OptiPlex-9020:~$ clj -Srepro -A:deps
Clojure 1.9.0
user=> (require '[clojure.tools.deps.alpha :as tda])
nil
user=> (tda/resolve-deps '{:deps {org.clojure/core.cache {:mvn/version "0.6.5"}}} {})
ArtifactNotFoundException Could not find artifact org.clojure:core.cache:jar:0.6.5 org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:412)
user=>
dorab@dorab-OptiPlex-9020:~$ clj -Srepro -A:deps -Sdeps '{:deps {org.clojure/core.cache {:mvn/version "0.6.5"}}}'
Downloading: org/clojure/core.cache/0.6.5/core.cache-0.6.5.pom from
Downloading: org/clojure/data.priority-map/0.0.7/data.priority-map-0.0.7.pom from
Downloading: org/clojure/data.priority-map/0.0.7/data.priority-map-0.0.7.jar from
Downloading: org/clojure/core.cache/0.6.5/core.cache-0.6.5.jar from
Clojure 1.9.0
user=> (require '[clojure.tools.deps.alpha :as tda])
nil
user=> (tda/resolve-deps '{:deps {org.clojure/core.cache {:mvn/version "0.6.5"}}} {})
ArtifactNotFoundException Could not find artifact org.clojure:clojure:jar:1.4.0 org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:412)
user=>
You need to provide the :mvn/repos to look in (these are in the install deps.edn with clj)