What are the steps to upgrade maven/grails from 1.2.0 to 1.2.1? - grails

I have recently started a new project using the maven grails archetype - at the time, (a few weeks ago), Grails 1.2.0 was the most recent release. Now that there's a newer release, what are the steps to upgrade? I would assume that since Grails dependencies are defined in the POM, that the POM will need to be updated? Are there any instructions on doing this? Does the maven-grails-plugin handle this? Is this documented anywhere?
Appreciate any pointers. Thanks!

According to this thread:
The recommended way of upgrading grails is simply "grails upgrade" in the project dir when you have downloaded the new version of Grails and set up your paths etc...
Note that I've seen at least one person reporting problems with version 1.2.1 (and the Hibernate plugin), see this thread. There is a workaround in the thread but maybe have a look at the Grails Jira first to see if there are any blocking issues with 1.2.1.

There is no "upgrade" target in the maven grails
plugin, so I'm still looking for information on doing this upgrade with maven.

Related

Jenkins Grails plugin does not list lastest versions of Grails

When installing a new Grails from Jenkins web UI, a user is given the choice of some versions - up to 2.4.4 and 3.0, but 2.4.5 and 2.5 are missed.
How to add 2.4.5 to that list?
P.S. Jenkins 1.598, Grails plugin 1.7 (latest)
There is an automated process within the Jenkins project infrastructure which updates the list of available versions daily.
Your Jenkins installation periodically downloads this file and uses it to populate the version list in the web UI.
Unfortunately, at the time of asking this question, that automated process was broken.
You can either wait for the bug to be fixed (it is now), or there should be the option to "Install from .zip/.tgz" instead of "Install from mirrors", where you can enter the URL to the Grails 2.4.5 zip file.
You have to go to "Manage Jenkins"/"Configure System"/"Grails installations" and put there the path where your installation is.

How to list all older versions of Grails plugins?

The Grails Plugins site only seems to list the latest versions of all the Grails plugins. But what if I wanted to see a list of other available (older) versions for each plugin? Is there a Grails SDK command/target I can issue to see old plugins?
I ask because I'm using a plugin whose current latest release is broke and its version is "2.0-RC2". Since it's a release candidate, I'd like to know what the last stable (non-RC) version is.
You can see the plugins at the main repo site here. The site is referenced via grailsCentral() in the BuildConfig.groovy file which in turn references the repo site in the org.codehaus.groovy.grails.resolve.maven.aether.config.RepositoriesConfiguration.groovy file
There is no such command to see old plugins.
If you are referring to Spring Security Core plugin then corresponding github repository has two branches:
master referring to 2.0-RC2 and 1.x referring to the last stable release 1.2.7.3.
On a side note, if you want to see all installed plugins with their versions then below command can be issued:
grails list-plugins --installed

Workaround to use cache-headers plugin without logging dependency

I'd like to use logback plugin along with cache-headers plugin. The problem is that cache-headers depends on the logging plugin, whereas logback need it to be removed.
Is there a way to get rid of a plugin's plugin dependency in grails (Aether) ?
That dependency is removed in cache-headers version 1.1.6, but it hasn't been released :
http://grails.1312388.n4.nabble.com/cache-headers-1-1-6-release-td4651033.html
I released version 1.1.6 with this fix and some other cleanup.
If there isn't a release planned soon the best solution is to build the plugin yourself and push it to some internal or personal maven repo. You can use the grails release plugin to deploy the code to a maven repo instead of grails central.

How do I configured GGTS 3.4.0 to use the internally shipped Grails runtime?

I've been using a previous version of GGTS with an externally configured Grails 2.1.1 runtime path. Upgrading to GGTS 3.4.0 I'd like to use the Grails that ships with GGTS (2.2.4), but I don't know how to configure the preferences to use the internally shipped grails version.
I skip the option to install Grails from GGTS/STS when I install it - I prefer to manage that myself. Go to Window|Preferences and then to the Grails node under the Groovy node. You can easily add as many Grails installations as you want from there, and choose which one is the default.
I found the answer. I did a brand new install and noticed that a brand new install creates a grails-2.2.4 sub-directory. The upgrade does not give you the option and I assumed it would.

How do I update the Solr version in grails-solr-plugin without affecting the plugin?

We are using solr-grails plugin for our website. And the most recent version of the plugin (grails-solr-plugin 0.2) uses solr 1.4, whereas the latest version of Solr is 3.5.
Is there any way I can update the Solr version without affecting the plugin?
Kindly help.
You could install the plugin, excluding the version of the Solr library therein, then explicitly include the more recent version. The details are described here in the context of another plugin.
Assuming you already have a plugin developer account, it would probably be easier to just download the plugin source code, upgrade the library and release a new version. FYI, a new plugin version can be released by anyone, not just the original plugin author. Your fellow Solr plugin users will thank you for this.
The plugin doesn't seem to be updated for almost a year now. There have been a number of forks from the original source code and some of them are updates for the 3.5 version - https://github.com/mbrevoort/grails-solr-plugin/network . You should try one of those.

Resources