Fork me on GitHub

15 Jun 2009

Checking for plugin updates

If you're anything like me you probably like to keep all your Grails plugins updated to the latest versions. It's quite easy to miss a release announcement and not realise there's a new version available. Although grails list-plugins will list out the available versions and what version you currently have installed it doesn't really highlight the plugins you could upgrade. I threw this script together this morning to do exactly that. It will simply check the plugin versions you have installed against all configured repositories and notify you of any that could be updated.

8 comments:

Burt said...

That's pretty slick - you should submit this to the Grails JIRA to be included as a core script.

Dean Del Ponte said...

I love the script... so, how does one execute it?

Rob said...

put it in your project script directory then use `grails check-plugin-versions`

Trevor Burnham said...
This comment has been removed by the author.
Trevor Burnham said...
This comment has been removed by the author.
Trevor Burnham said...

Works beautifully! Thanks for doing this. Definitely should be in the Grails core.

My only suggestion would be that the results list should include a column with the plugin's URL, even if it's just http://www.grails.org/plugin/plugin-name, so that you can go right there to check out the new features/documentation.

Rob said...

I committed the script to the Grails core today. I did change the name so you need to use 'grails list-plugin-updates'.

That's a really nice idea about including the documentation URL, I'll see if I can do that.

Love Kpop said...

I know there will be many difficulties and challenges but I am determined to do it. If it does not succeed then it will be a lesson for me as well
http://catmario4.com