Repository navigation
refactor(build): move the generated request classes to src/generated/java - #492
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## beta #492 +/- ##
=============================================
- Coverage 47.78% 35.82% -11.96%
+ Complexity 721 509 -212
=============================================
Files 213 107 -106
Lines 6171 4446 -1725
Branches 524 205 -319
=============================================
- Hits 2949 1593 -1356
+ Misses 2905 2763 -142
+ Partials 317 90 -227 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…java The 106 generated data request classes keep their package, so nothing changes for callers: src/generated/java now holds them, src/main/java keeps the hand-written request infrastructure, and pom.xml adds the root via build-helper-maven-plugin, which the compiler and the Javadoc pick up from the compile sources. codegen/generate.py writes to the new root, ci/check-docs.py scans both roots, and AGENTS.md, CONTRIBUTING.md and README.md note the two-root layout.
The generated request classes are pinned by codegen/generate.py --check, and their optional setter boilerplate is exercised only where a fixture uses the parameter, so counting it toward coverage reports a gap the tests cannot close without covering every setter.
dargmuesli
force-pushed
the
refactor/build/generated-source-root
branch
from
November 5, 2026 12:36
8df3f20 to
21f14fd
Compare
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.
Follow-up to #487, stacked on
feat/codegen. The 106 generated data request classes move fromsrc/main/javato a dedicated committed source rootsrc/generated/java, keeping the same Java package. The package is unchanged, so this is a build change only: the JAR, the module and every caller see the same classes.Today "is this file generated" is a content fact, a marker comment, and every tool that needs to treat the generated and the hand-written classes differently has to parse it or keep a file list. With the move it is a path fact: everything under
src/generated/javais regenerable, the 9 hand-written files (theAbstract*Requestbases, the paging interfaces, the two non-generated concrete classes) stay insrc/main/java, and no list has to be maintained as codegen adds or drops endpoints. The root is committed rather than undertarget/, because the build deliberately needs no Python.pom.xmladds the root viabuild-helper-maven-plugin, which the compiler and the Javadoc pick up from the compile sources.codegen/generate.pywrites the request classes to the new root and still splicesSpotifyApi.javain place.ci/check-docs.pyscans both roots..codecov.ymlexcludessrc/generated/**from coverage, because the generated classes are pinned by the generator check rather than by line coverage.AGENTS.md,CONTRIBUTING.mdandREADME.mdnote the two-root layout.Verified locally: 426 tests pass,
codegen/generate.py --checkreports no drift,ci/check-docs.pychecks all 115 examples, the Javadoc build includes the moved classes, and the examples module compiles against the rebuilt JAR.