Skip to content

Commit 3390454

Browse files
committed
fixup! Remove test scope from testng and jupiter dependencies
1 parent ed93e30 commit 3390454

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build.gradle.kts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,13 @@ dependencies {
5757
rewrite("org.openrewrite.recipe:rewrite-recommendations:latest.release")
5858

5959
// ↓ Classpath resource for MigrateTestNg* recipes
60-
implementation("org.testng:testng:latest.release")
60+
compileOnly("org.testng:testng:7.5.1") // 7.5.x is the last Java 8 compatible version: https://github.com/testng-team/testng/issues/2775
61+
6162
// ↓ also make jupiter available for refaster compilation
62-
implementation("org.junit.jupiter:junit-jupiter:latest.release")
63+
compileOnly("org.junit.jupiter:junit-jupiter-api:latest.release")
6364

6465
// ↓ to allow using testing recipes in our recipe list
65-
testRuntimeOnly("org.openrewrite.recipe:rewrite-testing-frameworks:latest.release") {
66+
compileOnly("org.openrewrite.recipe:rewrite-testing-frameworks:latest.release") {
6667
exclude("org.testcontainers", "testcontainers")
6768
}
6869
}

0 commit comments

Comments
 (0)