From 965334e63deb869f1860a58ae2ebb363fdb178ad Mon Sep 17 00:00:00 2001 From: Sicheng Song <114637679+b4sjoo@users.noreply.github.com> Date: Mon, 5 Dec 2022 16:02:23 -0800 Subject: [PATCH] fix junit version (#597) (#622) Signed-off-by: Yaliang Wu Signed-off-by: Yaliang Wu Signed-off-by: Sicheng Song Signed-off-by: Yaliang Wu Signed-off-by: Sicheng Song Co-authored-by: Yaliang Wu --- build.gradle | 5 +++-- plugin/build.gradle | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 1953f9917e..12dcd3378b 100644 --- a/build.gradle +++ b/build.gradle @@ -72,7 +72,7 @@ ext { } dependencies { - implementation 'junit:junit:4.12' + implementation 'junit:junit:${versions.junit}' } // updateVersion: Task to auto increment to the next development iteration @@ -85,4 +85,5 @@ task updateVersion { // Include the required files that needs to be updated with new Version ant.replaceregexp(file:'build.gradle', match: '"opensearch.version", "\\d.*"', replace: '"opensearch.version", "' + newVersion.tokenize('-')[0] + '-SNAPSHOT"', flags:'g', byline:true) } -} \ No newline at end of file +} + diff --git a/plugin/build.gradle b/plugin/build.gradle index 8f68d06b10..2ab1ff1c65 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -283,7 +283,6 @@ jacocoTestCoverageVerification { check.dependsOn jacocoTestCoverageVerification configurations.all { - resolutionStrategy.force 'junit:junit:4.12' resolutionStrategy.force 'org.apache.commons:commons-lang3:3.10' resolutionStrategy.force 'commons-logging:commons-logging:1.2' resolutionStrategy.force 'org.objenesis:objenesis:3.2'