March 24, 2018
3.3.0 - 07/26/2017
3.3.0.RC1 - Current release 06/26/2017
3.3.0.M2 - Current release 05/30/2017
3.3.0.M1 - Released 05/09/2017
Note
|
If you have anything to add, please let me know! info@grails3book.com |
Whats new in Grails
Whats new in GORM 6.1 (Default in 3.3)
Upgrading from 3.2.x to 3.3
Fresh app diffs 3.2.12 → 3.3.3
New Trait based testing framework
Can still use the old @TestFor
annotations with
testCompile "org.grails:grails-test-mixins:3.3.0"
Spring Boot 1.5.8
Autowire of domain classes off by default (since 3.2.9)
can be enabled per domain now if required in 3.3
static mapping = { autowire true }
Improved support for Multi-tenancy in GORM & GORM data services
Distribution and Packaging sizes greatly reduced.
Memory usage greatly reduced.
Unified and pluggable events/async - breaking change to pervious async
Transactional & ReadOnly annotations moved to GORM
Update all imports & annotations with
grep -rl 'grails.transaction.Transactional' . | xargs sed -i '' -e 's/grails.transaction.Transactional/grails.gorm.transactions.Transactional/g'
grep -rl '@Transactional(readOnly=true)' . | xargs sed -i '' -e 's/@Transactional(readOnly=true)/@ReadOnly/g'
Logger names changed for Grails artefacts
Now simply use package names
New default dependancies
Artefacts like controllers and services may not work properly if not included
grails-spring-security-oauth2-provider
(Filters)
IMPORTANT Quartz job property changes
Jobs will just not run silently if the properties are not changed from def
to static
build-test-data
Use 3.3.0.RC1+ - with new Trait framework.
Spring-Session (redis)
Dependancy changes
compile "org.springframework.session:spring-session-data-redis"
(work around) Autoconfigure did not work - had to set spring.session.'store-type' = 'redis'
in application.groovy/yml
Startup issue when using grails-spring-websocket
Field springTaskExecutor in org.grails.events.bus.spring.EventBusFactoryBean required a single bean, but 4 were found
Spring-Security core updated for Grails 3.3
Change to compile 'org.grails.plugins:spring-security-core:3.2.0'
https://github.com/grails-plugins/grails-spring-security-core/pull/491
Due to breaking change in spring-boot 1.5
GrailsCompileStatic & CompileStatic throw exception in valid uses
Add compile "org.grails.plugins:events:3.3.0.RC1"
to work around
Sentry plugin FilterRegistrationBean
package changed
Use compile 'org.grails.plugins:sentry:8.0.3'