Skip to content

Commit 7b5c671

Browse files
authored
Merge pull request #14763 from apache/jakarta-migration-plugins
Add paragraph and link to Gradle Jakarta EE migration plugin
2 parents 600a1d5 + b168c19 commit 7b5c671

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

grails-doc/src/en/guide/upgrading/upgrading60x.adoc

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,22 @@ If there is a plugin that you require updating, please reach out via https://git
206206
Spring has switched from javax to https://jakarta.ee/[jakarta] packages.
207207
Please consult the Spring upgrade guides for the impacts of this change.
208208

209+
Gradle Javax-to-Jakarta EE migration plugins, such as the https://github.com/nebula-plugins/gradle-jakartaee-migration-plugin?tab=readme-ov-file#configuring-the-plugin[gradle-jakartaee-migration-plugin], provide transforms and dependency substitutions to ease the migration from Java EE (`javax.`) to Jakarta EE (`jakarta.`). These plugins can help mitigate upgrade challenges with older dependencies that still use `javax.` until they are updated or replaced with alternative solutions.
210+
211+
To apply and configure the `gradle-jakartaee-migration-plugin` in your `build.gradle`, you can use the following snippet:
212+
213+
[source,groovy]
214+
.build.gradle
215+
----
216+
plugins {
217+
id 'com.netflix.nebula.jakartaee-migration' version '0.24.0'
218+
}
219+
220+
jakartaeeMigration {
221+
migrate()
222+
}
223+
----
224+
209225
===== 12.2 Removed libraries/classes
210226
- The `grails-web-fileupload` library, including its sole class `ContentLengthAwareCommonsMultipartResolver`, has been removed. This change was necessitated by the removal of the superclass `CommonsMultipartResolver` in Spring 6. The `ContentLengthAwareCommonsMultipartResolver` was originally introduced to address a bug in Safari back in 2007, but it is likely no longer needed. Spring has transitioned away from `CommonsMultipartResolver` and now recommends using the built-in support for multipart uploads provided by servlet containers. For more information on handling file uploads in Spring Boot, please refer to the relevant sections of the https://docs.spring.io/spring-boot/how-to/spring-mvc.html#howto.spring-mvc.multipart-file-uploads[Spring Boot documentation] and the https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-6.x#web-applications-1[Spring Framework 6 upgrade guide].
211227
- `org.grails.spring.beans.factory.OptimizedAutowireCapableBeanFactory` was previously deprecated and is now removed.
@@ -264,4 +280,4 @@ Please see ticket https://github.com/apache/grails-gradle-plugin/pull/347[#347]
264280

265281
===== 12.8 Java 20+ Date Formatting Changes
266282

267-
In Java 20+, https://cldr.unicode.org/downloads/cldr-42[Unicode CLDR42] was implemented which changed the space character preceding the period (AM or PM) in formatted date/time text from a standard space (" ") to a narrow non-breaking space (NNBSP: "\u202F"). Additionally, when using the LONG or FULL timeStyle with dateStyle, the date and time separator has changed from ' at ' to ', '. IE. January 5, 1941, 8:00:00 AM UTC vs. January 5, 1941 at 8:00:00 AM UTC
283+
In Java 20+, https://cldr.unicode.org/downloads/cldr-42[Unicode CLDR42] was implemented which changed the space character preceding the period (AM or PM) in formatted date/time text from a standard space (" ") to a narrow non-breaking space (NNBSP: "\u202F"). Additionally, when using the LONG or FULL timeStyle with dateStyle, the date and time separator has changed from ' at ' to ', '. IE. January 5, 1941, 8:00:00 AM UTC vs. January 5, 1941 at 8:00:00 AM UTC

0 commit comments

Comments
 (0)