Skip to content

Releases: grails/grails-core

Grails 2.3.0

16 Jan 12:48
Compare
Choose a tag to compare

Grails 2.2.4

16 Jan 10:45
Compare
Choose a tag to compare

Grails 2.2.3

16 Jan 10:44
Compare
Choose a tag to compare

Grails 2.2.2

16 Jan 10:41
Compare
Choose a tag to compare

Grails 2.1.5

16 Jan 10:29
Compare
Choose a tag to compare

Release Information

Upgrade Notes

There are a couple of changes in 2.1.4 that may require changes to your application:

Location of stacktrace.log

See GRAILS-2730 - The location of stacktrace.log now defaults to either the Tomcat logs directory when deploying on Tomcat or the location specified by the java.io.tmpdir system property. It is recommended that you override the stacktrace logger and provide an appropriate location, for example via

log4j = {
    appenders {
        file name: "stacktrace", append: true,
             file: "/var/tmp/logs/${appName}_stacktrace.log"
    }
    ...
}

See the user guide on logging configuration for more details.

Behaviour of @mock in unit tests

See GRAILS-9637 - Due to a performance issue, @Mock no longer mocks associated entities of the mocked entity. These have to be manually specified. For example the following test will fail in 2.1.4 and above:

@Mock(Author)
void testAddToBooks() {
    def a = new Author()
    a.addToBooks(new Book())
}

To correct the above test you need to mock both Author and Book:

@Mock([Author, Book])
void testAddToBooks() {
    def a = new Author()
    a.addToBooks(new Book())
}

Grails 2.2.1

16 Jan 10:39
Compare
Choose a tag to compare

Release Information

Upgrade Notes

There are a couple of changes in 2.1.4 that may require changes to your application:

Location of stacktrace.log

See GRAILS-2730 - The location of stacktrace.log now defaults to either the Tomcat logs directory when deploying on Tomcat or the location specified by the java.io.tmpdir system property. It is recommended that you override the stacktrace logger and provide an appropriate location, for example via

log4j = {
    appenders {
        file name: "stacktrace", append: true,
             file: "/var/tmp/logs/${appName}_stacktrace.log"
    }
    ...
}

See the user guide on logging configuration for more details.

Behaviour of @mock in unit tests

See GRAILS-9637 - Due to a performance issue, @Mock no longer mocks associated entities of the mocked entity. These have to be manually specified. For example the following test will fail in 2.1.4 and above:

@Mock(Author)
void testAddToBooks() {
    def a = new Author()
    a.addToBooks(new Book())
}

To correct the above test you need to mock both Author and Book:

@Mock([Author, Book])
void testAddToBooks() {
    def a = new Author()
    a.addToBooks(new Book())
}

Grails 2.1.4

16 Jan 10:25
Compare
Choose a tag to compare

Release Information

Upgrade Notes

There are a couple of changes in 2.1.4 that may require changes to your application:

Location of stacktrace.log

See GRAILS-2730 - The location of stacktrace.log now defaults to either the Tomcat logs directory when deploying on Tomcat or the location specified by the java.io.tmpdir system property. It is recommended that you override the stacktrace logger and provide an appropriate location, for example via

log4j = {
    appenders {
        file name: "stacktrace", append: true,
             file: "/var/tmp/logs/${appName}_stacktrace.log"
    }
    ...
}

See the user guide on logging configuration for more details.

Behaviour of @mock in unit tests

See GRAILS-9637 - Due to a performance issue, @Mock no longer mocks associated entities of the mocked entity. These have to be manually specified. For example the following test will fail in 2.1.4 and above:

@Mock(Author)
void testAddToBooks() {
    def a = new Author()
    a.addToBooks(new Book())
}

To correct the above test you need to mock both Author and Book:

@Mock([Author, Book])
void testAddToBooks() {
    def a = new Author()
    a.addToBooks(new Book())
}

Grails 2.2.0

16 Jan 10:35
Compare
Choose a tag to compare

Grails 2.1.3

16 Jan 10:18
Compare
Choose a tag to compare

Grails 2.1.2

16 Jan 10:15
Compare
Choose a tag to compare