Announcement Announcement Module
No announcement yet.
How does STS upgrade Grails plugins? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • How does STS upgrade Grails plugins?

    Right now there is a bug preventing me from opening the Grails Plugin Manager in STS. I need to upgrade a couple plugins and I was surprised to see that there is no upgrade/update command in Grails. I figure if I follow the steps STS uses I should be OK, so can someone spell that out? Does it manually run uninstall/install commands?


  • #2
    I'm not sure this is what you are asking... but...

    In the Grails plugin manager in STS there is a way to 'upgrade' a plugin. I.e. you have some plugin 'foo' verion '1.2.3'
    you can upgrade it to verion '1.2.4' using the UI. When you do that an upgrade is essentially executed in two steps:

    a) grails uninstall-plugin foo
    b) grails install-plugin foo 1.2.4

    There may be faster ways to get this done as well (e.g. edit your file and replace the version numbers in there with what you want... then after that run "grails compile".

    Doing "grails compile" should uninstall and install things as needed so that the plugin versions will match what is in

    The second method is faster but can break when installing some new version of the plugin also implies some changes in plugin dependencies.

    I hope that answered your question.



    • #3
      Thanks Kris, that helped. Even with the plugin manager out of commission for now, STS seems to respond well to running the uninstall/install commands manually from the command line.