Skip to content

Commit

Permalink
Update What's New Section
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl committed May 22, 2023
1 parent 1d774bd commit 6187b0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 25 deletions.
28 changes: 4 additions & 24 deletions src/en/guide/introduction/whatsNew.adoc
Original file line number Diff line number Diff line change
@@ -1,30 +1,10 @@
This section covers all the new features introduced in Grails 5
This section covers all the new features introduced in Grails 6

=== Overview
This release includes support for Apache Groovy 3, Micronaut framework 3, Gradle 7, Spring Boot 2.6, Spring framework 5.3, and Spock 2.0.

Apache Groovy 3 is a major highlight of this release. It comes with a brand new Parrot parser and a bunch of new features and capabilities. The Parrot parser supports additional syntax and language features, such as lambda expressions, default methods with interfaces, and a lot more. In addition, several new extension methods are added to existing Java classes. See the https://groovy-lang.org/releasenotes/groovy-3.0.html#releasenotes[release notes for Groovy 3.0] for details.
Grails framework 6 updates to Spring 5.3.27 and Spring Boot 2.7.12. We recommend checking the following Spring technologies release notes for more information.

Grails framework 5 updates to Spring 5.3.10 and Spring Boot 2.5.5. We strongly recommend checking the following Spring technologies release notes for more information.

* https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.6-Release-Notes[Spring Boot 2.6]
* https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.7-Release-Notes[Spring Boot 2.7]
* https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-5.x#upgrading-to-version-53[Upgrading to Spring Framework 5.3]

Grails framework 5 is built with Groovy 3.0.7, which requires JDK 8 as the minimum version of JRE. We have tested most Grails projects up to JDK 14.

=== Important Changes

==== Deprecating ‘dot’-Based Navigation
The ‘dot’-based navigation to Grails config is deprecated and will be removed in the future.

We request that you update your plugins to use configuration beans `@ConfigurationProperties` or `@Value`, or access configuration settings using `grailsApplication.config.getProperty(‘a.b.c’, String)` instead of `grailsApplication.config.a.b.c`. For more information, read the documentation at link:plugins.html#creatingAndInstallingPlugins[Creating and Installing Plugins].

===== Default Autowire By Type
In previous versions, the beans inside the Grails DataService were autowire by name, but this is changed to autowire by type in Grails framework 5. Use the Spring `@Qualifier` annotation to autowire by name. For details, see the Spring documentation for Fine-tuning Annotation Based Autowiring with Qualifiers.

==== Grails Gradle Plugin
The Grails Gradle Plugin is moved out of grails-core and may follow separate versioning, so you should decouple the `grailsVersion` Gradle property from `grailsGradlePluginVersion` in existing applications.

==== Grails Gradle Publish Plugin Removed
The Grails Gradle Publish plugin used the Bintray API to publish artifacts. However, after the JFrog shutdown of Bintray, this stopped working. We have removed this plugin from the new Grails Plugin applications.

Grails framework 6 is built with Groovy 3.0.11, which requires JDK 11 as the minimum version of JRE.
2 changes: 1 addition & 1 deletion src/en/guide/toc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
introduction:
title: Introduction
whatsNew:
title: What's new in Grails 5?
title: What's new in Grails 6?
dependencyUpgrades: Updated Dependencies
gettingStarted:
title: Getting Started
Expand Down

0 comments on commit 6187b0b

Please sign in to comment.