Skip to content

Add apiguardian-api to annotation processor classpath#939

Merged
timtebeek merged 1 commit intomainfrom
tim/suppress-api-status-warnings
Mar 24, 2026
Merged

Add apiguardian-api to annotation processor classpath#939
timtebeek merged 1 commit intomainfrom
tim/suppress-api-status-warnings

Conversation

@timtebeek
Copy link
Member

Summary

  • Adds org.apiguardian:apiguardian-api:1.1.2 to the annotation processor classpath
  • Eliminates the flood of warning: unknown enum constant API$Status.STABLE messages in CI
  • The warning occurs because the compiler encounters JUnit 5's @API annotation during annotation processing but can't resolve the Status enum without this dependency

Test plan

  • Verified ./gradlew compileJava produces no unknown enum constant warnings after the change

…nings

Resolves the flood of "unknown enum constant API$Status.STABLE" warnings
in CI by making the enum class available during annotation processing.
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Mar 24, 2026
@timtebeek timtebeek merged commit 259e4c9 into main Mar 24, 2026
1 check passed
@timtebeek timtebeek deleted the tim/suppress-api-status-warnings branch March 24, 2026 21:35
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant