Repository navigation
deps: apply Renovate updates; drop custom hoplite type discriminator - #52
Merged
Merged
Conversation
- kotlinx-serialization 1.12.0, kotlinx-coroutines 1.11.0 - hoplite 3.0.5, flyway 13.11.1, mysql-connector-j 26.10.0 - kodein-di 7.33.0, graalvm buildtools 0.11.5 - Gradle 9.8.2, gradle/actions 4.4.4, claude-code-action 1.0.263
Hoplite 3.0.5 lets an environment variable select a sealed subtype by naming it as the sealed type's own value, e.g. BOOT_SERVICE_ORDER_TIEBREAKER=Shuffled, so the custom `type` discriminator is no longer needed. Config files go back to `_type`, as in 3.0.0, and subtype names now match in any case.
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.
Applies the open Renovate updates in one PR and uses Hoplite 3.0.5 to drop the custom
typediscriminator.Dependency updates
Supersedes #23, #25, #26, #29, #30, #31, #44, #45, #48, #49.
Sealed subtypes select with
_typeagainHoplite 3.0.5 (sksamuel/hoplite#604) lets an environment variable select a sealed subtype by naming it as the sealed type's own value, so
hopliteConfigBinderno longer needswithExplicitSealedTypes("type"):_type, as in 3.0.0:tiebreaker { _type = Shuffled, seed = 42 }.BOOT_SERVICE_ORDER_TIEBREAKER=ShuffledandBOOT_SERVICE_ORDER_TIEBREAKER_SEED=42.The unreleased 3.1.0 changelog drops the
_type→typebreaking change, and the README, service-ordering doc, and KDoc use the new keys.Testing
./gradlew buildpasses, including the Postgres and MySQL Testcontainers tests.