Add project.clj->deps.edn oneliner to gallery
This commit is contained in:
parent
aa8e6b160b
commit
16129a8db1
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue