Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop play-json-extensions dependency #875

Merged
merged 2 commits into from
Apr 26, 2024
Merged

Conversation

AshCorr
Copy link
Member

@AshCorr AshCorr commented Apr 16, 2024

What does this change?

Drops the play-json-extensions dependency. This dependency was used to auto-generate JSON Writer implementations for case classes with more than 22 fields.

Unfortunately it appears this dependency hasn't been updated in a long time and doesn't fully support Play 3 yet causing us to have to do some trickery with dependencies to avoid loading in any Play 2 dependencies, specifically Akka.

Thankfully we only had 1 class that was using this extension which was quite easy to write a custom JSON Writer implementation for.

@AshCorr AshCorr force-pushed the ash/play-json-extensions branch from b65d124 to 76a8622 Compare April 16, 2024 14:35
@@ -69,10 +68,6 @@ lazy val root = (project in file("."))
"ch.qos.logback" % "logback-classic" % "1.5.5",
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.17.0"
),
excludeDependencies ++= Seq(
// As of Play 3.0, groupId has changed to org.playframework; exclude transitive dependencies to the old artifacts
ExclusionRule(organization = "com.typesafe.play")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

play-json-extensions was trying to bring in com.typesafe.play:play-json

@AshCorr AshCorr marked this pull request as ready for review April 16, 2024 14:46
Copy link
Member

@akash1810 akash1810 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, brilliant!

@AshCorr AshCorr requested a review from a team as a code owner April 26, 2024 14:04
@AshCorr AshCorr enabled auto-merge April 26, 2024 14:04
@AshCorr AshCorr merged commit c313cee into main Apr 26, 2024
1 check passed
@AshCorr AshCorr deleted the ash/play-json-extensions branch April 26, 2024 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants