Repository navigation
refactor(module)!: require Gson without re-exporting it - #494
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## beta #494 +/- ##
=========================================
Coverage 37.10% 37.10%
Complexity 509 509
=========================================
Files 106 106
Lines 4282 4282
Branches 196 196
=========================================
Hits 1589 1589
Misses 2603 2603
Partials 90 90 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
With the JsonUtil classes removed and request bodies taking List and Map, no public signature takes or returns a Gson type anymore, so callers no longer need to read Gson through this module. Gson stays a regular Maven dependency; only a module that uses Gson itself without requiring it has to add its own requires. Refs #461
dargmuesli
force-pushed
the
refactor/module/gson-requires
branch
from
November 5, 2026 13:20
72c5278 to
dcc5dd8
Compare
dargmuesli
enabled auto-merge
November 5, 2026 13:20
Merged
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The last remaining item from #461.
With #487 (request bodies take
List/Map) and #493 (theJsonUtilclasses andPlaylistItemFactoryremoved), no public signature takes or returns a Gson type anymore. Gson is now used only internally and through@SerializedNameon private model fields. Somodule-info.javadeclares it asrequires com.google.gsoninstead ofrequires transitive. Theopens … to com.google.gsonlines stay, since Gson still reads the model fields reflectively.Who is affected: only a module that uses Gson itself without declaring
requires com.google.gson, because until now it got Gson through this library. Gson stays a regular Maven dependency, so nothing changes for classpath users or for dependency resolution.MIGRATION.mdhas a short "Java modules" note under 11.0.0.Verification (local):
ci/check-docs.pypass.