Skip to content

fix(gradle): discover 3.0 extension descriptors#897

Merged
jbachorik merged 3 commits into
developfrom
agent/issue-876-gradle-descriptors
Jul 14, 2026
Merged

fix(gradle): discover 3.0 extension descriptors#897
jbachorik merged 3 commits into
developfrom
agent/issue-876-gradle-descriptors

Conversation

@jbachorik

@jbachorik jbachorik commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • centralize the active BTrace extension annotation descriptors on the 3.0 io.btrace package
  • auto-discover annotated service interfaces and merge service/package descriptor permissions into the API manifest
  • keep unannotated implementation types out of the exported API and remove obsolete documentation workarounds

Fixes #876

Verification

  • ./gradlew spotlessCheck
  • affected TestKit cases: buildApiJarKeepsResourcesAndExcludesInternalShims, descriptorsDiscoverServicesAndPermissions, and apiPublicationsStayApiOnly
  • focused descriptor TestKit case rerun after adversarial assertion tightening
  • descriptor audit confirms the only active service/extension/external-type bytecode descriptors in the Gradle plugin are centralized 3.0 io.btrace constants

Baseline limitations

The complete :btrace-gradle-plugin:test suite currently has three unrelated stale-test failures on develop: two tests configure the removed btraceRegistry DSL, and one configures the removed registry(...) extension source. The current develop pin to JUnit 6.1.2 also has no Java 11-compatible variant, so TestKit verification used a temporary local JUnit 5.14.4 pin and Java 17 test launcher; neither temporary change is included in this PR.


This change is Reviewable

@jbachorik jbachorik marked this pull request as ready for review July 14, 2026 19:14
@jbachorik jbachorik merged commit d171d51 into develop Jul 14, 2026
17 checks passed
@jbachorik jbachorik deleted the agent/issue-876-gradle-descriptors branch July 14, 2026 19:16
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.

[3.0] Fix Gradle extension annotation discovery for io.btrace descriptors

1 participant