diff --git a/build.gradle b/build.gradle index efadd0a71..8a09c3262 100644 --- a/build.gradle +++ b/build.gradle @@ -272,6 +272,9 @@ dependencies { runtimeOnly group: 'org.json', name: 'json', version: '20231013' runtimeOnly("com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}") runtimeOnly("com.fasterxml.jackson.core:jackson-databind:${versions.jackson_databind}") + implementation 'org.slf4j:slf4j-api:1.7.36' + testFixturesImplementation "org.opensearch:common-utils:${version}" + testFixturesImplementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.14.0' // json-path 2.9.0 depends on slf4j 2.0.11, which conflicts with the version used by OpenSearch core. // Excluding slf4j here since json-path is only used for testing, and logging failures in this context are acceptable. testFixturesImplementation('com.jayway.jsonpath:json-path:2.9.0') { @@ -279,8 +282,6 @@ dependencies { } // OpenSearch core is using slf4j 1.7.36. Therefore, we cannot change the version here. implementation 'org.slf4j:slf4j-api:1.7.36' - testFixturesImplementation "org.opensearch:common-utils:${version}" - testFixturesImplementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.14.0' testFixturesCompileOnly group: 'com.google.guava', name: 'guava', version:'32.1.3-jre' testFixturesCompileOnly fileTree(dir: knnJarDirectory, include: "opensearch-knn-${opensearch_build}.jar") } diff --git a/qa/build.gradle b/qa/build.gradle index 60dc0023b..8f1193119 100644 --- a/qa/build.gradle +++ b/qa/build.gradle @@ -43,7 +43,7 @@ dependencies { api "org.apache.logging.log4j:log4j-api:${versions.log4j}" api "org.apache.logging.log4j:log4j-core:${versions.log4j}" api "junit:junit:${versions.junit}" - testRuntimeOnly 'com.jayway.jsonpath:json-path:2.9.0' + testRuntimeOnly 'com.jayway.jsonpath:json-path:2.9.0' testImplementation "org.opensearch.test:framework:${opensearch_version}" testImplementation(testFixtures(rootProject)) }