Releases: grails/grails-core
Grails 2.4.0
Release Information
Grails 2.3.8
Release Information
Update Notes
Recommended plugin versions
If you are upgrading from previous versions of Grails 2.3.x and you use the Hibernate plugin, you will need to update the version in BuildConfig:
runtime ':hibernate:3.6.10.13' // ':hibernate4:4.3.5.1' for Hibernate 4
Recommended tomcat, resources, scaffolding and database-migration plugin versions for Grails 2.3.x :
build ':tomcat:7.0.52.1'
runtime ':resources:1.2.7'
compile ':scaffolding:2.0.3'
runtime ':database-migration:1.4.0'
Note: database-migration 1.4.0 has support for hibernate4 plugin.
Grails 2.3.7
Release Information
Update Notes
Recommended Tomcat and Hibernate plugin versions
If you are upgrading from previous versions of Grails 2.3.x and you use the Hibernate and/or Tomcat plugins you will need to update the versions in BuildConfig:
build ':tomcat:7.0.52.1'
runtime ':hibernate:3.6.10.10' // ':hibernate4:4.3.4.1' for Hibernate 4
UPDATE: hibernate plugin version 3.6.10.9 shipped with Grails 2.3.7 has a problem with multiple datasources (or multiple GORM providers like MongoDB). An updated version (3.6.10.10) of the hibernate plugin is now available. Please update the hibernate plugin version in BuildConfig.groovy .
hibernate4 plugin has been updated to 4.3.4.1 after the release. It fixes GRAILS-11198 (startup with default DataSource.groovy containing the new "singleSession = true" setting).
The current version for scaffolding plugin is 2.0.2 (already updated before 2.3.6 release).
Recommended resources plugin version
You should also upgrade resources plugin to 1.2.7 version because of a security vulnerability in resources plugin versions before 1.2.6. See CVE-2014-0053 for more information.
runtime ':resources:1.2.7'
Config.groovy
should contain properly configured values for grails.resources.adhoc.excludes , for example
grails.resources.adhoc.excludes = ['**/WEB-INF/**','**/META-INF/**']
Grails 2.2.5
Grails 2.3.6
Release Information
New Features
- Use GORM for Hibernate in a Groovy Script
- Best Effort 1PC Pattern for Transactions Across Multiple DataSources, read upgrade notes below
- Production DataSource Exported via JMX for
dataSource
withjmxEnabled = true
in properties
Update Notes
Updated Plugins
If you are upgrading from previous versions of Grails 2.3.x and you use the Hibernate and/or Tomcat plugins you will need to update the versions in BuildConfig:
build ':tomcat:7.0.50.1'
runtime ':hibernate:3.6.10.8'
Changes to Dependency Graph
Grails 2.3.6 makes some changes to the dependency graph inhertied by all applications. If you are excluding dependencies from the framework you may need to alter your exclusion rules.
Changes to transactions across multiple datasources
In previous Grails versions, additional datasources didn't take part in transactions initiated in Grails. The transactions in additional datasources were basically in auto commit mode. In some cases this might be the wanted behavior. One reason might be performance: on the start of each new transaction, the BE1PC transaction manager creates a new transaction to each datasource. It's possible to leave an additional datasource out of the BE1PC transaction manager by setting @transactional = false@ in the respective configuration block of the additional dataSource.
By default, the BE1PC implementation will add all beans implementing the Spring PlatformTransactionManager interface to the chained BE1PC transaction manager. You can use different configuration options for controlling this behaviour.
There is more details of this feature in the [Transactions across multiple datasources |http://grails.org/docs/2.3.x/guide/conf.html#multipleDatasources] section.
Changes to previous Grails 2.3.x releases
DataSource.groovy (before 2.3.6)
The default DataSource
properties have been revised due to [database connection problems|http://jira.grails.org/browse/GRAILS-11097] that many users were having.
These are the new defaults.
properties {
// See http://grails.org/doc/latest/guide/conf.html#dataSource for documentation
jmxEnabled = true
initialSize = 5
maxActive = 50
minIdle = 5
maxIdle = 25
maxWait = 10000
maxAge = 10 * 60000
timeBetweenEvictionRunsMillis = 5000
minEvictableIdleTimeMillis = 60000
validationQuery = "SELECT 1"
validationQueryTimeout = 3
validationInterval = 15000
testOnBorrow = true
testWhileIdle = true
testOnReturn = false
jdbcInterceptors = "ConnectionState;StatementCache(max=200)"
defaultTransactionIsolation = java.sql.Connection.TRANSACTION_READ_COMMITTED
}
It's now also possible to add database driver specific properties to "dbProperties". This feature is usefull in fine tuning MySQL JDBC driver properties. There is an [example on Stackoverflow|http://stackoverflow.com/a/21754467/166062].
UrlMappings.groovy (before 2.3.5)
replace this line
"/$controller/$action?/$id?(.${format})?"{
with
"/$controller/$action?/$id?(.$format)?"{
Grails 2.3.5
Release Information
Update Notes
If you are upgrading from Grails 2.3.0 and you use the Hibernate plugin you will need to update to version 3.6.10.2 of the plugin. In BuildConfig
:
build ':tomcat:7.0.50'
runtime ':hibernate:3.6.10.7'
Known issues in default files contained in previous 2.3.x releases
In UrlMappings.groovy
replace this line
"/$controller/$action?/$id?(.${format})?"{
with
"/$controller/$action?/$id?(.$format)?"{
Grail 2.3.4
Release Information
Update Notes
If you are upgrading from Grails 2.3.0 and you use the Hibernate plugin you will need to update to version 3.6.10.2 of the plugin. In BuildConfig
:
build ':tomcat:7.0.47'
runtime ':hibernate:3.6.10.6'
Grails 2.3.3
Release Information
Update Notes
If you are upgrading from Grails 2.3.0 and you use the Hibernate plugin you will need to update to version 3.6.10.2 of the plugin. In BuildConfig
:
build ':tomcat:7.0.47'
runtime ':hibernate:3.6.10.4'
Grails 2.3.2
Release Information
Update Notes
If you are upgrading from Grails 2.3.0 and you use the Hibernate plugin you will need to update to version 3.6.10.2 of the plugin. In BuildConfig
:
runtime ':hibernate:3.6.10.3'
Grails 2.3.1
Release Information
Update Notes
If you are upgrading from Grails 2.3.0 and you use the Hibernate plugin you will need to update to version 3.6.10.2 of the plugin. In BuildConfig
:
runtime ':hibernate:3.6.10.2'