Skip to content

Gradle plugin: The artifact walker skips internal packages and honours excludePackages - #199

Merged
b-re-w merged 2 commits into
developfrom
feat/walker-internal-packages
Oct 17, 2026
Merged

b-re-w merged 2 commits into
developfrom
feat/walker-internal-packages

Conversation

@b-re-w

@b-re-w b-re-w commented Oct 17, 2026

Copy link
Copy Markdown
Member

SPEC B-11 (#192): the artifact walker skips declarations in packages with an internal segment (Kotlin .api dump convention), on jars and klibs, and honours pythonBindings.excludePackages with the KSP side's namespace matching. Still a blacklist (AGENTS.md 12.7).

Verified locally

  • Red before the implementation: InternalPackageExclusionTest did not compile (excludePackages parameter missing).
  • Plugin unit tests: 282 tests, 0 failures (InternalPackageExclusionTest 8/8).
  • KlibScannerTest's @PublishedApi case used checkIndexOverflow, which lives in kotlinx.coroutines.internal and is now skipped; the test now asserts its absence and checks the @PublishedApi decline on cancelConsumed/consumes/consumesAll.
  • Fixtures, each as a separate invocation: artifact 37/0, ksp app 79/0, compose 123/0.

Closes #192

@b-re-w
b-re-w merged commit 0d41092 into develop Oct 17, 2026
1 of 7 checks passed
@b-re-w
b-re-w deleted the feat/walker-internal-packages branch October 17, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant