Skip to content

fix: regenerate api.txt for networkmock modules and add metalava PR check#65

Merged
MaxMichel2 merged 1 commit into
mainfrom
fix/metalava-api-compatibility
Jul 21, 2026
Merged

fix: regenerate api.txt for networkmock modules and add metalava PR check#65
MaxMichel2 merged 1 commit into
mainfrom
fix/metalava-api-compatibility

Conversation

@MaxMichel2

Copy link
Copy Markdown
Collaborator

Summary

  • Regenerates api.txt for devview-networkmock and devview-networkmock-core to reflect API changes introduced before 0.1.3 (NetworkMockResourceLoader fun interface, responseSuffixes parameter, query param matching, delay support in models) that were never recorded — this was the root cause of the publish.yml failure for the 0.1.3 tag
  • Deletes the stale 0.1.3.txt snapshots for those two modules (release.py will recreate them correctly when we re-run the release)
  • Reverts the release prep artifacts (version back to 0.1.3-SNAPSHOT, changelog, docs/index.md) so release.py can re-run cleanly
  • Fixes MetalavaConventionPlugin to declare explicit task dependencies on generateComposeResClass and generateExpectResourceCollectors, resolving implicit dependency validation errors when running with configuration cache
  • Adds a metalava CI job to build.yml (runs on macOS, no disableAppleTargets, so iOS-specific APIs are included) — ensures stale api.txt is caught at PR time, not at publish time

After merging

Delete the old 0.1.3 tag and re-run the release script:

git tag -d 0.1.3
git push origin :refs/tags/0.1.3
python3 scripts/release.py 0.1.3 0.2.0-SNAPSHOT

Test plan

  • metalavaCheckCompatibility passes in the new CI job on macOS
  • After re-release, publish.yml triggered by the new 0.1.3 tag passes the build job
  • 0.1.3 appears on Maven Central

🤖 Generated with Claude Code

Regenerates api.txt for devview-networkmock and devview-networkmock-core
to reflect API changes introduced in 0.1.3 (NetworkMockResourceLoader,
responseSuffixes, query param matching, delay support). Deletes the
stale 0.1.3.txt snapshots and reverts the release prep so release.py
can re-run cleanly for 0.1.3.

Also fixes MetalavaConventionPlugin to declare explicit task dependencies
on generateComposeResClass and generateExpectResourceCollectors, which
resolves implicit dependency validation errors when running with
--configuration-cache.

Adds a metalava CI job to build.yml (runs on macOS to include iOS APIs)
so stale api.txt is caught at PR time, not at publish time.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@MaxMichel2 MaxMichel2 self-assigned this Jul 21, 2026
@MaxMichel2
MaxMichel2 requested a review from matthiaslao July 21, 2026 15:47
@MaxMichel2 MaxMichel2 added the bug Something isn't working label Jul 21, 2026
@MaxMichel2
MaxMichel2 merged commit b391951 into main Jul 21, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant