Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removes joda-time and joda-convert (#6340)
* removed joda-time and joda-convert * migration notices
- Loading branch information
Showing
28 changed files
with
177 additions
and
356 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
documentation/manual/releases/release26/migration26/JodaMigration26.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!--- Copyright (C) 2009-2016 Lightbend Inc. <https://www.lightbend.com> --> | ||
# Joda Migration Guide | ||
|
||
In order to make the default play distribution a bit smaller we removed all occurences of Joda Time from play. | ||
This means that you should migrate to Java8 `java.time`, if you can. | ||
|
||
## Use Joda-Time in Forms and Play-Json | ||
|
||
If you still need to use Joda-Time in Play Forms and Play-Json you can just add the `play-joda` project: | ||
|
||
``` | ||
libraryDependencies += "com.typesafe.play" % "play-joda" % "1.0.0" | ||
``` | ||
|
||
And then import the corresponding Object for Forms: | ||
|
||
``` | ||
import play.api.data.JodaForms._ | ||
``` | ||
|
||
or for Play-Json | ||
|
||
``` | ||
import play.api.data.JodaWrites._ | ||
import play.api.data.JodaReads._ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.