Skip to content

Move CodeGeneratorRequestWriter to ToolBase#943

Closed
alexander-yevsyukov wants to merge 5 commits into
masterfrom
claude/busy-dirac-wwflbm
Closed

Move CodeGeneratorRequestWriter to ToolBase#943
alexander-yevsyukov wants to merge 5 commits into
masterfrom
claude/busy-dirac-wwflbm

Conversation

@alexander-yevsyukov

Copy link
Copy Markdown
Contributor

Closes #938.

io.spine.code.proto.CodeGeneratorRequestWriter is protoc-plugin tooling, not runtime API: its only consumers are the protoc-plugin entry points of the Compiler and ProtoTap. It moves to the tool-base module of ToolBase as io.spine.tools.code.proto.CodeGeneratorRequestWriter via SpineEventEngine/tool-base#181.

Changes

  • Remove CodeGeneratorRequestWriter and its spec from base.
  • Bump version → 2.0.0-SNAPSHOT.410 (next multiple of 10 — removing public API is a breaking change).

Notes

  • CodeGeneratorRequestParsingSpec and CodeGeneratorRequestsJavaSpec stay: they test the io.spine.type parsing API, which remains in base, and the Java spec still uses the constructRequest helper declared in the Kotlin parsing spec.
  • The rest of io.spine.code.proto stays in base (KnownTypes loads descriptor sets through it at application startup).
  • Merge order: land Add CodeGeneratorRequestWriter from Base; fix plugins to work with Gradle cache; fix ArtifactMetaPlugin working directory tool-base#181 first, then this PR; consumers then migrate by switching the import.
  • The sandbox used to prepare this PR cannot resolve Spine snapshot artifacts (403 from all artifact registries), so the Gradle build could not run locally; CI on this PR is the verification.

https://claude.ai/code/session_01QkiJSc86Y7ocs1PeZMxJhX


Generated by Claude Code

claude added 4 commits June 10, 2026 03:21
The class is protoc-plugin tooling, not runtime API: its only consumers
are the protoc-plugin entry points of the Compiler and ProtoTap. It
moves to the `tool-base` module of ToolBase as
`io.spine.tools.code.proto.CodeGeneratorRequestWriter`.

`CodeGeneratorRequestParsingSpec` and `CodeGeneratorRequestsJavaSpec`
stay because they test the `io.spine.type` parsing API, which remains
in `base`.

See #938
@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.04%. Comparing base (5cf8aa6) to head (27a157f).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #943      +/-   ##
==========================================
- Coverage   94.06%   94.04%   -0.03%     
==========================================
  Files         193      192       -1     
  Lines        4164     4149      -15     
  Branches      339      339              
==========================================
- Hits         3917     3902      -15     
  Misses        147      147              
  Partials      100      100              
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alexander-yevsyukov

Copy link
Copy Markdown
Contributor Author

Merged into #944, which now combines both removals (this branch was merged into claude/cool-lamport-rnwzpu with the version resolved to 2.0.0-SNAPSHOT.410).

@github-project-automation github-project-automation Bot moved this from 🏗 In progress to ✅ Done in v2.0 Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Move work with CodeGeneratorRequest to ToolBase

2 participants