You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: grails-doc/src/en/guide/introduction/whatsNew.adoc
+4-62Lines changed: 4 additions & 62 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,77 +17,19 @@ specific language governing permissions and limitations
17
17
under the License.
18
18
////
19
19
20
-
This section covers all the new features introduced in Grails 7
20
+
This section covers all the new features introduced in Grails 8
21
21
22
22
=== Overview
23
23
24
24
Grails {GrailsVersion} is a major release that includes new features, improvements, and dependency upgrades.
25
25
This release focuses on enhancing the developer experience, improving performance, and ensuring compatibility with the latest technologies.
26
26
27
-
For detailed information on how to upgrade to Grails 7, including major dependency changes, please see the xref:upgrading#upgrading60x[Upgrading from Grails 6 to Grails 7] section.
27
+
For detailed information on how to upgrade to Grails 8, including major dependency changes, please see the xref:upgrading#upgrading70x[Upgrading from Grails 7 to Grails 8] section.
28
28
Notable new features are included below.
29
29
30
-
=== External Configuration
30
+
==== No New Features at this time
31
31
32
-
The https://github.com/sbglasius/external-config[external configuration plugin] is now integrated into Grails.
33
-
See the xref:conf.adoc#externalConfiguration[Configuration] section for details.
34
-
35
-
=== Ubiquitous Containerized Browser Testing with Geb
36
-
37
-
The https://github.com/apache/grails-core/tree/HEAD/grails-geb#readme[Grails Geb Plugin] has received a significant update, introducing test fixtures that enable ubiquitous containerized browser testing.
38
-
39
-
This new approach is now the recommended way to write functional tests in Grails. However, the previous method using WebDriver binaries remains supported for backward compatibility.
40
-
41
-
==== Key Features
42
-
43
-
By extending your test classes with `ContainerGebSpec`, your tests will automatically leverage a containerized browser provided by https://java.testcontainers.org/[Testcontainers]. This setup eliminates the need for managing browser versions and ensures consistent test environments.
44
-
45
-
==== Requirements
46
-
47
-
To use `ContainerGebSpec`, ensure that you have a compatible container runtime installed. Supported options include:
48
-
49
-
- **Docker Desktop**
50
-
- **OrbStack** (macOS only)
51
-
- **Rancher Desktop**
52
-
- **Podman Desktop**
53
-
- **Colima** (macOS and Linux)
54
-
55
-
==== How It Works
56
-
57
-
Once a compatible container runtime is installed, no additional configuration is needed. Simply extend your test classes with `ContainerGebSpec` (instead of `GebSpec`), and the following will happen:
58
-
59
-
1. A container will be started automatically when you run your integration tests.
60
-
2. The container will be configured to launch a browser capable of accessing your application under test.
61
-
62
-
With this setup, you gain the benefits of containerized testing, such as isolation, reproducibility, and reduced setup complexity.
63
-
64
-
==== formActionSubmit tag
65
-
66
-
A new tag `formActionSubmit` has been added to replace `actionSubmit`.
67
-
Dispatching actions via a parameter name on a form submit will be removed in a future version of grails.
68
-
See ticket https://github.com/grails/grails-gsp/issues/551[#551] for details.
69
-
70
-
==== @Scaffold support for Controllers and Services
71
-
72
-
The `@Scaffold` annotation was added to customize scaffolding generation for controllers and services.
73
-
74
-
==== Bootstrap 5.3.3 support
75
-
76
-
Bootstrap 5.3.3 support.
77
-
Saffolding and Fields tags now optionally support boostrap classes.
78
-
79
-
==== Prioritization of AutoConfiguration over bean overriding.
80
-
81
-
The core dependencies of Grails are moving to using `@Configuration` to better integrate with the Spring Boot ecosystem.
82
-
Please note that this does mean that some beans are now initialized earlier in the application context lifecycle.
83
-
84
-
==== Significant Dependency Removals
85
-
86
-
With the removal of Micronaut, and the fixes to the asset pipeline plugin, Grails build sizes should now be significantly reduced.
87
-
88
-
==== g:form & CSRF protection
89
-
90
-
The `g:form` tag now automatically provides csrf protection when Spring Security CSRF is enabled.
0 commit comments