Atlassian released version 5.0.0 of their plugin SDK earlier this month and like a fanboy I upgraded immediately. It updates Maven from 2.1.0 to 3.2.1, so that's a big change in itself.
Today, I started work on updating an add-on for Confluence 4.3.x (yes, really). Guess what? My development environment is now completely incompatible with the target Confluence version. What to do?
Being a Homebrew fan, I'd like to use that to reinstall the old version. You can do this with old versions of some software such as Maven e.g.
brew tap homebrew/versions
brew install maven2
I'd like to do the same with the Atlassian Plugin SDK. Could I? Nope.
So I rolled my own. It was very easy.
You can use it too. Here's how:
brew tap dvdsmpsn/tap
brew install dvdsmpsn/tap/atlassian-plugin-sdk-42
This currently installs version 4.2.19 of the SDK.
The code is available on GitHub. I'm sure there are better ways of doing this, but it fills a gap and that's enough for me.
Atlassian have added their own legacy version just like mine. You can try it out:
brew tap atlassian/tap
brew install atlassian/tap/atlassian-plugin-sdk-4
Thanks to Marcos Scriven for providing the update and letting me know.