Repository navigation
DGS Codegen 8.8.0 focuses on faster code generation and Gradle build caching.
This release reduces repeated work in schema lookups and client projection generation, writes generated sources in parallel and lets Gradle reuse generated outputs across workspaces with equivalent inputs.
The largest gains are expected in projects with large schemas or extensive client projections.
🚀 Performance improvements
- Client projections: avoid repeatedly rendering source files during projection merges (#959), with operation-qualified roots for field-name collisions while preserving existing legacy roots (#972) by @iuliiasobolevska.
- Schema lookups: index the schema model and type-name lookups to reduce repeated traversal (#962, #965) by @iuliiasobolevska.
- Generator state: reuse the client API generator across operations, avoid unnecessary required-type collection and remove unused projection recursion state (#969, #966, #964) by @iuliiasobolevska.
- Schema loading: avoid duplicate schema readers (#968), preserve generate-time dependency type-mapping merges (#977) and stream dependency schemas from jars to reduce allocation (#988) by @iuliiasobolevska.
- Parallel source writing: write generated files concurrently (#963), preserve compatible exception and interrupt behavior (#978) and allow case-only paths on case-sensitive filesystems (#975) by @iuliiasobolevska.
♻️ Gradle build caching
- Make
generateJavacacheable and relocatable so equivalent inputs can reuse generated outputs across workspaces (#967) by @iuliiasobolevska. - Cache enabled generated documentation at its new default Gradle output location,
build/generated/docs/dgs-codegen(#976) by @iuliiasobolevska. - Make cache keys sensitive to schema ordering (#979), preserve dependency-jar ZIP entry order (#980) and account for schema directory ordering (#981) by @iuliiasobolevska.
🧹 Cleanup and test coverage
- Use structured JavaPoet types in client projections (#728) by @kilink.
- Consolidate duplicate projection and serialization code (#971) by @iuliiasobolevska.
- Isolate Gradle TestKit fixtures (#970) by @iuliiasobolevska.
- Add an integration test suite for the Java code generator (#903) by @illegal.
- Add deserialization tests (#939) by @jiholee17 and @iuliiasobolevska.
📦 Dependency updates
- Update
kotlinx-serialization-jsonfrom1.8.+to1.9.0(#905) by @dependabot[bot].
🔧 Build tooling
- Upgrade the repository's Gradle wrapper to
9.4.1, then9.8.0(#960, #927) by @iuliiasobolevska and @dependabot[bot]. - Update
actions/setup-javafrom5to6(#973) by @dependabot[bot]. - Update
actions/setup-pythonfrom6.3.0through7.0.0to7.1.0(#974, #986) by @dependabot[bot]. - Fix the Python version used in CI (#989) by @iuliiasobolevska.
Full changelog: v8.7.0...v8.8.0