I am trying to implement for my grails project using 1.3.7 version. I am using ant build instead of Gradle build tool. I am not able to find
Which version of codenarc will support to Grails 1.3.7?
Versions above 0.9 and under 1.0.
Related
I am using ant build tool for my Grails 1.3.7 project.
I verified all Grails 1.3.7 documentation too. Even I am not able to find how to install(add) a plugin in ant build tool(build.xml).
Install with grails install-plugin /home/user/grails-someplugin-1.0.zip
I am looking to upgrade Grails from 1.3.7.
Which version of grails is compatible with Java8?
What versions of hibernate and tomcat plugins to be used?
Which version of grails is compatible with Java8?
Grails 2.5.x is the first version of Grails for which we officially support Java 8.
What versions of hibernate and tomcat plugins to be used?
Your options there will depend on which version of Grails you decide to use. If you are using Grails 2.5.6 then I would suggest :tomcat:7.0.70 and either :hibernate4:4.3.10 or :hibernate:3.6.10.18. With Grails 3 you have a wider array of options.
Which version of grails is compatible with Java8?
I upgraded to 2.3.10 with JDK 1.8 successfully in two steps.
I first tried to upgrade it to version 2.0.5 from 1.3.7. (Note earlier vesions of grails support upgrade command which helps to upgrade few things automatically).
Remember there will be some changes in Application
AppplicationContext.xml will have some changes.
The class org.codehaus.groovy.grails.commons.ConfigurationHolder is deprecated. Use below code
def config = Holders.config
In second step I migrated from version 2.0.5 to 2.3.10
What versions of hibernate and tomcat plugins to be used?
runtime ':hibernate:3.6.10.16' // ':hibernate4:4.3.5.4' for Hibernate 4
build ':tomcat:7.0.54'
i want to develop with groovy/grails and need a IDE. I found older versions of STS supported groovy/grails. Does Spring Tools Suite 3.8.3 support groovy/grails?
Grails support in STS (Groovy/Grails Tools Suite, actually) ended in version 3.6.4 (source).
You need only groovy support in your IDE, as starting from Grails 3.0 all project are plain gradle projects
I'm going to migrate an existing Grails 2.0 plugin to 2.4.
According to the migration guide the following steps were done:
run set-grails-version 2.4.4
update to latest plugin versions (hibernate4, tomcat, release and etc)
In in Intellij I've changed plugin SDK version on 2.4.4. Now module->dependencies looks like
It looks good but when I do grails compile, I have MultipleCompilationErrorsException in SvnDeployer class of release:3.0.1 plugin with "unable to resolve" message: unable to resolve class org.apache.commons.io.FilenameUtils(it's strange, commons.io is included into grails library)
On SDK of 2.0 everything is fine, but when I change SDK version to 2.4, project can not be compiled.
From my experience, Grails upgrades are not really smooth especially between feature releases.
I recommend starting with the usual
grails clean
grails refresh-dependencies
grails compile
After that check if you still get the same kind of errors, see whether or not excluding the svn plugin helps (if you're not using it).
Anyone know if I write a Grails plugin using Grails 2.2.1 (which uses Groovy 2.0) and use some Groovy 2.0 features e.g. #TypeChecked and if a Grails project that is using an earlier version of Grails and an earlier version Groovy use this plugin?
the plugins and groovy versions of course are not backward-compatible in terms of new features. you shall prepare a backward-compatible version of your plugin by removing groovy 2.x features out of it