xscDev

Something Something Development

[Release] Recursively Check/Upgrade your Project Dependencies using lein-ancient 0.5.0-RC1

without comments

I just released lein-ancient 0.5.0-RC1, incorporating the following neat features and enhancements:

  • recursively traverse your directories and upgrade all “project.clj” files that are found,
  • run user-specified regression tests after upgrading to ensure compatibility with the upgraded artifacts,
  • print warnings for unrecognized and no-longer-supported options,
  • apply artifact check/upgrade to a given file/directory, not only the current one.

This probably doesn’t look a lot but it prompted the restructuring of the codebase which should make it easier to incorporate new features and options in future releases. And here’s a short peek of what it looks like:

$ lein ancient upgrade :recursive :interactive :no-tests libraries
-- libraries/ancient-clj/project.clj

[clj-aws-s3 "0.3.7"] is available but we use "0.3.6"
Do you want to upgrade? [yes/no] yes

1 artifact was upgraded.

-- libraries/pandect/project.clj
Nothing was upgraded.

-- libraries/panoptic/project.clj

[com.taoensso/timbre "2.6.2"] is available but we use "2.1.2"
Do you want to upgrade? [yes/no] yes

[potemkin "0.3.3"] is available but we use "0.3.0"
Do you want to upgrade? [yes/no] yes

[pandect "0.3.0"] is available but we use "0.2.3"
Do you want to upgrade? [yes/no] no

2 artifacts were upgraded.
...

Please check the above features out and let me know if you run into any problems! It would be much appreciated!

Written by Yannick

September 28th, 2013 at 11:20 pm