Results 1 to 3 of 3

Thread: How does STS upgrade Grails plugins?

  1. #1
    Join Date
    Feb 2007
    Location
    Huntington Beach, CA
    Posts
    26

    Question 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?

    Thanks,
    Philip

  2. #2
    Join Date
    May 2010
    Posts
    398

    Default

    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 application.properties 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 application.properties.

    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.

    Kris
    Kris De Volder -- SpringSource

  3. #3
    Join Date
    Feb 2007
    Location
    Huntington Beach, CA
    Posts
    26

    Default

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •