Fork me on GitHub
#leiningen
<
2020-11-04
>
dangercoder10:11:44

Hi! is it possible to configure mirrors and repositories from project.clj instead of profiles.clj? I haven't managed yet

dangercoder11:11:10

or can you add a -s commands like in maven? mvn clean -s settings.xml?

mikerod13:11:34

@jarvinenemil you can specify both within a project.clj

mikerod13:11:55

What is -s?

dangercoder13:11:05

its for settings in maven

dangercoder13:11:14

like mirror, repository etc.

mikerod13:11:42

You can command line alter project

mikerod13:11:20

lein update-in : assoc :repositories <edn map here> — <tasks here>

dangercoder13:11:27

having the definitions in project.clj worked like a charm 🙂, thanks @mikerod

deadghost15:11:40

Are deprecation warnings a thing? I see https://clojure.atlassian.net/browse/CLJ-706 for getting it into clojure but it's not in yet. Does leiningen handle it at all?

andy.fingerhut15:11:18

The Eastwood linter can warn about these for Clojure/JVM code, at least (it does not support ClojureScript). I do not know off hand whether the clj-kondo linter (which does support ClojureScript) might warn about uses of deprecated things.

Yehonathan Sharvit15:11:25

I have an issue when launching lein repl on a project: I get this error:

/Users/viebel/prj/cyco/combo/target/default+57112520/bb0a23c4d064f2123af6cc3c9b1d72630db3fa48-init.clj (No such file or directory)

Yehonathan Sharvit15:11:50

Other folks from my team don’t get this error at all, although we all run leiningen 2.9.4 on JDK 11

Yehonathan Sharvit15:11:03

Leiningen 2.9.4 on Java 11.0.8 Java HotSpot(TM) 64-Bit Server VM

Yehonathan Sharvit15:11:13

What is the meaning of the error?

Yehonathan Sharvit15:11:17

How could I solve it?

Yehonathan Sharvit15:11:49

The error disappears when I remove :target-path "target/%s/" from project.clj