Add project.clj->deps.edn oneliner to gallery

This commit is contained in:
Arne Brasseur 2019-12-17 15:35:03 +01:00 committed by Michiel Borkent
parent aa8e6b160b
commit 16129a8db1

View file

@ -673,6 +673,12 @@ clj-http/clj-http can be upgraded from 3.4.0 to 3.10.0
cheshire/cheshire can be upgraded from 5.8.1 to 5.9.0 cheshire/cheshire can be upgraded from 5.8.1 to 5.9.0
``` ```
### Convert project.clj to deps.edn
```
cat project.clj | sed -e 's/#=//g' -e 's/~@//g' -e 's/~//g' | bb '(let [{:keys [dependencies source-paths resource-paths]} (apply hash-map (drop 3 *in*))] {:paths (into source-paths resource-paths) :deps (into {} (for [[d v] dependencies] [d {:mvn/version v}]))} ) ' | jet --pretty > deps.edn
```
## Thanks ## Thanks
- [adgoji](https://www.adgoji.com/) for financial support - [adgoji](https://www.adgoji.com/) for financial support