Skip to content

Add opt-in ClassGraph 5 support while retaining v4 compatibility - #5356

Open
khopland wants to merge 1 commit into
swagger-api:masterfrom
khopland:feat/5351-classgraph-5-opt-in
Open

khopland wants to merge 1 commit into
swagger-api:masterfrom
khopland:feat/5351-classgraph-5-opt-in

Conversation

@khopland

Copy link
Copy Markdown

Adds opt-in ClassGraph 5 support to the OpenAPI scanners, including Jakarta variants. ClassGraph 4 remains the default, preserving existing behavior and Java requirements.

Applications on Java 17+ can opt in by overriding the ClassGraph dependency to 5.0.0.

Tested both versions, including resource discovery and class loading.

Fixes #5351

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor (non-breaking change)
  • 🧪 Tests
  • 📝 Documentation
  • 🧹 Chore (build or tooling)

Checklist

  • I have added/updated tests as needed
  • I have added/updated documentation where applicable
  • The PR title is descriptive
  • The code builds and passes tests locally
  • I have linked related issues (if any)

Screenshots / Additional Context

@khopland khopland mentioned this pull request Oct 19, 2026
6 of 11 tasks

This branch has not been deployed

No deployments
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.

Move to classgraph 5.x or 6.x in Swagger scanners

1 participant