Sunday 19 June 2022

Eliminating a Joda Time Dependency

 A short time ago, I started work on a new project, which would be based on the Scala Play framework.

Part of this project required some authentication logic, and I stumbled upon the Play Silhouette library. Unfrotunately, this depends on Joda Time, which in 2022 (and, particularly, post the introduction of the Java Time API in Java 8) seems old-hat.

I therefore set about creating a PR to remove Joda Time from this library.  It seemed simple... replace all the uses of Joda's DateTime with a ZonedDateTime from Java Time, remove the dependency on Joda Time, and we're done... right?

Wrong.