Skip to content

Commit

Permalink
Add apiguardian compileOnlyApi to fix Gradle build warnings
Browse files Browse the repository at this point in the history
Gradle build on CI otherwise will warn about
"unknown enum constant Status.STABLE,  reason: class file for
org.apiguardian.api.API$Status not found"
  • Loading branch information
Philzen committed Jun 23, 2024
1 parent 739af3a commit 57f9615
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ dependencies {
// ↓ Classpath resource for MigrateTestNg* recipes
testRuntimeOnly("org.testng:testng:7.5.1") // 7.5.x is the last Java 8 compatible version: https://github.com/testng-team/testng/issues/2775
runtimeOnly("org.junit.jupiter:junit-jupiter-api:latest.release")
testImplementation("org.apiguardian:apiguardian-api:latest.release")

// ↓ to allow using testing recipes in our recipe list
testRuntimeOnly("org.openrewrite.recipe:rewrite-testing-frameworks:latest.release") {
Expand Down

0 comments on commit 57f9615

Please sign in to comment.