From 7eb5ecef4229b02f809e0088dfe1dfe97fb20f84 Mon Sep 17 00:00:00 2001 From: DidierLoiseau Date: Fri, 18 Oct 2024 01:13:07 +0200 Subject: [PATCH] Fix missing version for junit-platform-launcher --- rewrite-java-8/build.gradle.kts | 4 ++-- rewrite-java/build.gradle.kts | 2 +- rewrite-test/build.gradle.kts | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/rewrite-java-8/build.gradle.kts b/rewrite-java-8/build.gradle.kts index f8f1659f8af..5f92a5f85dd 100644 --- a/rewrite-java-8/build.gradle.kts +++ b/rewrite-java-8/build.gradle.kts @@ -21,8 +21,8 @@ dependencies { implementation("io.micrometer:micrometer-core:1.9.+") - testImplementation("org.junit.jupiter:junit-jupiter-api:latest.release") - testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:latest.release") + testImplementation("org.junit.jupiter:junit-jupiter-api") + testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine") testImplementation(project(":rewrite-test")) "javaTck"(project(":rewrite-java-tck")) diff --git a/rewrite-java/build.gradle.kts b/rewrite-java/build.gradle.kts index 743ad3cae68..f84627b4c2b 100644 --- a/rewrite-java/build.gradle.kts +++ b/rewrite-java/build.gradle.kts @@ -45,7 +45,7 @@ dependencies { isTransitive = false } compileOnly(project(":rewrite-test")) - compileOnly("org.junit.jupiter:junit-jupiter-api:latest.release") + compileOnly("org.junit.jupiter:junit-jupiter-api") compileOnly("org.assertj:assertj-core:latest.release") implementation("org.apache.commons:commons-lang3:latest.release") implementation("org.apache.commons:commons-text:latest.release") diff --git a/rewrite-test/build.gradle.kts b/rewrite-test/build.gradle.kts index 97c6b600041..f8dbafd3a40 100644 --- a/rewrite-test/build.gradle.kts +++ b/rewrite-test/build.gradle.kts @@ -3,10 +3,11 @@ plugins { } dependencies { + api(platform("org.junit:junit-bom:latest.release")) api(project(":rewrite-core")) compileOnly("io.micrometer:micrometer-core:latest.release") - api("org.junit.jupiter:junit-jupiter-api:latest.release") - api("org.junit.jupiter:junit-jupiter-params:latest.release") + api("org.junit.jupiter:junit-jupiter-api") + api("org.junit.jupiter:junit-jupiter-params") implementation("org.assertj:assertj-core:latest.release") implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-csv")