Skip to content

Grails 2.4.4

Compare
Choose a tag to compare
@graemerocher graemerocher released this 16 Jan 13:37
· 5653 commits to master since this release

Release Information

Update Notes

Recommended plugin versions

If you are upgrading from previous versions and you use the hibernate4 plugin, you will need to update the version in BuildConfig:

runtime ':hibernate4:4.3.6.1' // or ':hibernate:3.6.10.18'

UPDATE: There is a known issue in hibernate4:4.3.6.1 plugin with the auto-timestamping feature. The workaround is to add these dependencies to BuildConfig.groovy

compile "javax.validation:validation-api:1.1.0.Final"
runtime "org.hibernate:hibernate-validator:5.0.3.Final"

recommended tomcat, asset-pipeline, cache and scaffolding plugin versions for Grails 2.4.x :

build ':tomcat:7.0.55'
compile ':cache:1.1.8'
compile ':scaffolding:2.1.2'
compile ':asset-pipeline:1.9.9'

If you are using MongoDb GORM, the recommended plugin version is 3.0.2 (No updates since Grails 2.4.3)

compile ':mongodb:3.0.2'

updated grails-datastore-test-support

grails-datastore-test-support was updated.

You should use grails-datastore-test-support version 1.0.2-grails-2.4 for Grails 2.4.4.

dependencies {
   ...
   test "org.grails:grails-datastore-test-support:1.0.2-grails-2.4"
   ...
}

Changes To Forward Method Unit Tests

When unit testing the results of a controller action which invokes a forward, the forwardedUrl property no longer contains a leading /grails or trailing .dispatch.

@TestFor(DemoController)
class DemoControllerSpec extends Specification {
    void 'test a forward call'() {
        when:
        controller.someAction()

        then:
        // in Grails 2.4.3 this would have been /grails/demo/someDestination.dispatch
        response.forwardedUrl == '/demo/someDestination'
    }
}

Changes in default maven repository network connections (http-> https)

Grails 2.4.4 will use https by default to access maven repositories.
Jira issue was GRAILS-11631

This only applies to these maven repository aliases you can use in the repositories configuration block with grails.project.dependency.resolver = "maven".