diff --git a/build.gradle b/build.gradle index acfb7d645..13e1c9e82 100644 --- a/build.gradle +++ b/build.gradle @@ -11,7 +11,8 @@ plugins { ext{ commercetoolsJavaSdkV2Version = '17.28.0' mockitoJunitJupiterVersion = '5.16.1' - jupiterApiVersion = '5.11.3' + jupiterApiVersion = '5.12.1' + jupiterPlatformVersion = '1.12.1' assertjVersion = '3.26.3' pmdVersion = '7.7.0' jacocoVersion = '0.8.12' @@ -55,6 +56,7 @@ dependencies { testImplementation "org.junit.jupiter:junit-jupiter-params:${jupiterApiVersion}" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${jupiterApiVersion}" testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${jupiterApiVersion}" + testRuntimeOnly "org.junit.platform:junit-platform-launcher:${jupiterPlatformVersion}" testImplementation "org.assertj:assertj-core:${assertjVersion}" testImplementation 'com.github.spotbugs:spotbugs-annotations:4.8.4' } diff --git a/gradle-scripts/execution-order.gradle b/gradle-scripts/execution-order.gradle index a5aac4dd3..53eb76bb2 100644 --- a/gradle-scripts/execution-order.gradle +++ b/gradle-scripts/execution-order.gradle @@ -41,6 +41,8 @@ check.dependsOn jacocoTestReport // Ensure jacocoTestCoverageVerification and jacocoTestReport run after integrationTest jacocoTestCoverageVerification.mustRunAfter integrationTest jacocoTestReport.mustRunAfter integrationTest +jacocoTestCoverageVerification.mustRunAfter compileBenchmarkJava +jacocoTestCoverageVerification.mustRunAfter javadoc // Ensure build runs after setLibraryVersion build.mustRunAfter setLibraryVersion // Ensure benchmark results are only committed runs after the benchmarks are run