This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-30
Channels
- # adventofcode (1)
- # announcements (1)
- # babashka (5)
- # beginners (344)
- # bristol-clojurians (1)
- # calva (18)
- # cljfx (6)
- # clojure (85)
- # clojure-europe (37)
- # clojure-finland (1)
- # clojure-france (2)
- # clojure-nl (2)
- # clojure-taiwan (3)
- # clojure-uk (17)
- # clojurescript (13)
- # conjure (23)
- # cursive (25)
- # datomic (7)
- # fulcro (62)
- # java (7)
- # jobs-discuss (8)
- # malli (3)
- # off-topic (22)
- # portal (18)
- # reagent (34)
- # reitit (8)
- # releases (3)
- # shadow-cljs (18)
- # tools-deps (1)
Does anyone have an example setup for CircleCI obtaining Datomic dev-local
from the new dev-tools
package?
I'm wondering what's the simplest way to provide the credentials for the cognitect-dev-tools
maven repo. Do I need to provide an example settings.xml
which I copy to ~/.m2/settings.xml
explicitly from the .circleci/config.yml
job definition?
That much I figured out that the settings.xml
can contain references to the environment, so I can work with a static file, like:
<settings xmlns=""
xmlns:xsi=""
xsi:schemaLocation="
">
<servers>
<server>
<id>cognitect-dev-tools</id>
<username>${env.COGNITECT_DEV_TOOLS_MVN_USER}</username>
<password>${env.COGNITECT_DEV_TOOLS_MVN_PWD}</password>
</server>
</servers>
</settings>
according to this old ticket, it's not currently possible to point Clojure CLI tools to a different maven user settings file:
https://clojure.atlassian.net/browse/TDEPS-99
which is otherwise possible to do directly with the mvn
command line, using the -s
/ --settings
option.
@U086D6TBN this is how I've solved this issue previously. I set secret vars in CircleCI and pull those in via the XML file you've described.