From 139daf52119c3e0c5ffecb3aaa4daec82a7c830e Mon Sep 17 00:00:00 2001 From: Philzen Date: Sun, 23 Jun 2024 22:49:03 +0200 Subject: [PATCH] Add apiguardian compileOnlyApi to fix Gradle build warnings Gradle build on CI otherwise will warn about "unknown enum constant Status.STABLE, reason: class file for org.apiguardian.api.API$Status not found" --- build.gradle.kts | 1 + 1 file changed, 1 insertion(+) diff --git a/build.gradle.kts b/build.gradle.kts index 9d7e315..edd8666 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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") + compileOnlyApi("org.apiguardian:apiguardian-api:1.1.2") // ↓ to allow using testing recipes in our recipe list testRuntimeOnly("org.openrewrite.recipe:rewrite-testing-frameworks:latest.release") {