Skip to content

chore(deps): drop classgraph test dependency - #932

Merged
jonesbusy merged 1 commit into
oras-project:mainfrom
jonesbusy:chore/drop-classgraph
Oct 16, 2026
Merged

jonesbusy merged 1 commit into
oras-project:mainfrom
jonesbusy:chore/drop-classgraph

Conversation

@jonesbusy

Copy link
Copy Markdown
Collaborator

ClassGraph 6.0.0 (#931) is compiled for Java 25 (class file version 69) and fails to compile on Java 17:

bad class file: classgraph-6.0.0.jar(/io/github/classgraph/ClassGraph.class)
  class file has wrong version 69.0, should be 61.0

ClassGraph was only used in ClassAnnotationsTest to find @OrasModel classes. This replaces it with a small JDK-only scan of the compiled classes directory (Files.walk + Class.forName), and removes the dependency from the pom. The assertions (43 / 10 / 11 classes) are unchanged and pass.

Supersedes #931 (Renovate will close it once the dependency is gone).

🤖 Generated with Claude Code

ClassGraph 6 requires Java 25 (class file version 69) while the project
targets Java 17. Replace its single use in ClassAnnotationsTest with a
plain JDK scan of the compiled classes.

Supersedes oras-project#931

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Valentin Delaye <jonesbusy@users.noreply.github.com>
@codecov

codecov Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.60%. Comparing base (0c6ddc2) to head (b6aa21b).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #932      +/-   ##
============================================
+ Coverage     87.19%   87.60%   +0.41%     
  Complexity     1284     1284              
============================================
  Files            51       51              
  Lines          4131     4131              
  Branches        569      569              
============================================
+ Hits           3602     3619      +17     
+ Misses          309      292      -17     
  Partials        220      220              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@jonesbusy jonesbusy added tests dependencies Pull requests that update a dependency file labels Oct 16, 2026
@jonesbusy
jonesbusy merged commit b47b2dc into oras-project:main Oct 16, 2026
9 checks passed
@jonesbusy
jonesbusy deleted the chore/drop-classgraph branch October 16, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant