This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-14
Channels
- # announcements (3)
- # aws (7)
- # babashka (108)
- # beginners (222)
- # bristol-clojurians (3)
- # calva (8)
- # chlorine-clover (1)
- # cider (14)
- # clj-kondo (4)
- # cljdoc (6)
- # cljs-dev (89)
- # cljsrn (13)
- # clojars (6)
- # clojure (89)
- # clojure-australia (1)
- # clojure-europe (11)
- # clojure-italy (9)
- # clojure-losangeles (11)
- # clojure-nl (6)
- # clojure-spec (2)
- # clojure-sweden (1)
- # clojure-uk (9)
- # clojurescript (47)
- # conjure (18)
- # datomic (7)
- # docker (1)
- # figwheel (43)
- # figwheel-main (2)
- # fulcro (31)
- # kaocha (3)
- # leiningen (7)
- # luminus (2)
- # nrepl (14)
- # off-topic (24)
- # pathom (5)
- # pedestal (5)
- # rdf (4)
- # re-frame (49)
- # reagent (12)
- # reitit (9)
- # rum (21)
- # shadow-cljs (109)
- # tools-deps (35)
- # vim (8)
- # wasm (1)
you can use :exclusions [lib/name]
in a coordinate
I'm assuming you're talking about a transitive dependency
there is no global exclusions right now
Hello Alex, I´m doing this
{:paths ["src"]
:deps {org.clojure/clojure {:mvn/version "1.10.1"}
mount {:mvn/version "0.1.16"}
com.sikulix/sikulixapi {:mvn/version "2.0.4"
:exclusions [org.bouncycastle/bctsp-jdk14]}}}
and still getting
clj -J'-Dclojure.server.repl={:port,5555,:accept,clojure.core.server/repl}'
Error building classpath. Could not find artifact bouncycastle:bctsp-jdk14:jar:138 in central ( )
not sure, that seems like good deps syntax
I can repro locally
seems like its in maven central to me https://repo1.maven.org/maven2/org/bouncycastle/bctsp-jdk14/
that 138 looks suspicious to me
maybe should be 1.38
which is an actual version - I assume that's in com.sikulix/sikulixapi deps
might be an edge case where it's failing while getting the metadata for something that it's going to exclude
I am getting on a call, but I can look at it tomorrow
@fabrao apparently what you want to exclude is bouncycastle/bctsp-jdk14
(without the org.
)
I noticed in the initial set of download messages:
Downloading: org/jboss/logging/jboss-logging/3.1.4.GA/jboss-logging-3.1.4.GA.pom from central
Downloading: org/jboss/jboss-parent/9/jboss-parent-9.pom from central
Downloading: bouncycastle/bctsp-jdk14/138/bctsp-jdk14-138.pom from central <======== LOOK AT THIS LINE!
Downloading: org/bouncycastle/bctsp-jdk14/1.38/bctsp-jdk14-1.38.pom from central
Downloading: org/ghost4j/ghost4j/1.0.1/ghost4j-1.0.1.jar from central
@seancorfield You are the BOSS !!! That´s it !!! Thank you
(which looks ancient and maybe even bogus?)
yeah, that must be old or something
in case you're wondering the path to badness is com.sikulix/sikulixapi 2.0.4 net.sourceforge.tess4j/tess4j 4.4.1 org.ghost4j/ghost4j 1.0.1 com.lowagie/itext 2.1.7 bouncycastle/bcprov-jdk14 138
there are newer versions of stuff lower down, didn't investigate in detail but probably could update some stuff to newer there to fix
I have added a plain java class alongside my clojure code. Is it possible to have it compiled as a part of the ordinary clojure compilation? In lein there seems to be a :java-source-paths
option, is there something corresponding in tools.deps?
I use this solution. If you want you can use something like this: https://gist.github.com/just-sultanov/e2f61734e22e2ed3981216ed9b880bc0
not in tools.deps. Some of the build tools based on tools.deps can do it though. Or you may be able to get away with compiling them manually, e.g.
for x in **/*.java; do javac -cp `clojure -Spath` $x ; done
Thanks for the answer! The class is expected to be more or less static, so just a manual javac
invocation indeed seems to be the simplest solution. :)
Hi, I'm a bit new to the clojure command line tools. I'm wondering if there is an equivalent to lein deps
and this is because I'm using it with docker. It is recommended with docker to download dependencies in a separate step so that they aren't re-downloaded if none changed, such as:
FROM clojure
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY project.clj /usr/src/app/
RUN lein deps
COPY . /usr/src/app
RUN mv "$(lein uberjar | sed -n 's/^Created \(.*standalone\.jar\)/\1/p')" app-standalone.jar
CMD ["java", "-jar", "app-standalone.jar"]
you can do clj -e nil
to trigger deps to resolve and download
Yeah I had a need for this recently (in a TravisCI build), and ended up doing clojure -Srepro -e '(println "Dependencies downloaded")'
. Felt a bit hackish, but glad to see that’s basically how it’s done.
I stand corrected - it was a GitHub action/workflow thingy - but basically the same idea.