From a63177052e41c5e06e0419a31c9450d9a665a1bf Mon Sep 17 00:00:00 2001 From: Arnaud Roques Date: Thu, 5 Oct 2023 20:09:06 +0200 Subject: [PATCH] chore: update mockito version except for Java 8 --- build.gradle.kts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 9e788e8c0..d8f1f66ac 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -33,8 +33,13 @@ dependencies { testImplementation("io.github.glytching:junit-extensions:2.6.0") testImplementation("org.assertj:assertj-core:3.24.2") testImplementation("org.junit.jupiter:junit-jupiter:5.10.0") - testImplementation("org.mockito:mockito-core:4.+") - testImplementation("org.mockito:mockito-junit-jupiter:4.+") + if (JavaVersion.current().isJava8) { + testImplementation("org.mockito:mockito-core:4.+") + testImplementation("org.mockito:mockito-junit-jupiter:4.+") + } else { + testImplementation("org.mockito:mockito-core:5.+") + testImplementation("org.mockito:mockito-junit-jupiter:5.+") + } testImplementation("org.scilab.forge:jlatexmath:1.0.7") "pdfRuntimeOnly"("org.apache.xmlgraphics:fop:2.9")