Add jar publishing, README, controller-layer curl logging, and Gradle 9/Java 25/Micronaut 4 upgrade - #1
Merged
Conversation
… 9/Java 25 upgrade - Add GitHub Actions workflows: CI build/test and publish-to-GitHub-Packages on release - Add group/version/maven-publish config to build.gradle.kts for the GitHub Packages target - Add README documenting the library, installation, and configuration - Extract curl-building logic into a shared CurlCommandBuilder, fixing a bug where the request body's Optional wrapper was serialized instead of its contents - Add CurlServerRequestFilter to log curl commands for inbound @controller requests, independently toggleable from the existing @client filter via curl-logger.client.enabled and curl-logger.server.enabled - Upgrade Gradle wrapper to 9.6.1, Kotlin to 2.4.0, and target bytecode/toolchain to Java 25
- Kotlin 2.3.0 (still supports JVM target 25, confirmed by compilation) - Micronaut BOM moved to io.micronaut.platform:micronaut-platform 4.10.16 - micronaut-validation coordinate moved to the io.micronaut.validation group - Add micronaut-jackson-databind explicitly: Micronaut 4 no longer pulls Jackson in transitively via micronaut-http-server-netty (decoupled for pluggable serde), so CurlCommandBuilder's ObjectMapper usage needs it declared directly Verified by temporarily compiling with targetJvm=21 (only JDK available in this sandbox) against the new BOM before restoring targetJvm=25 for the committed config.
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.
Summary
maven-publishconfig added tobuild.gradle.kts)README.mddocumenting the library, installation, and configurationCurlServerRequestFilterto log curl commands for inbound@Controllerrequests (previously only outgoing@Clientrequests were covered byCurlRequestFilter). Both filters are independently toggleable viacurl-logger.client.enabled/curl-logger.server.enabled(defaulttrue), and share curl-building logic via a newCurlCommandBuilderOptionalwrapper was being JSON-serialized instead of its actual contentsio.micronaut.platform:micronaut-platform,micronaut-validationcoordinate moved to theio.micronaut.validationgroup, andmicronaut-jackson-databindadded explicitly since Micronaut 4 no longer pulls Jackson in transitively)Test plan
gradle compileKotlin/gradle buildverified locally (Micronaut 4 + dependency graph validated by temporarily building under JDK 21, the only JDK available in the sandbox, before restoring the committedtargetJvm=25config)ci.yml) passes on GitHub Actions with real JDK 25Generated by Claude Code