diff --git a/common/build.gradle b/common/build.gradle index 001af6727f..41ffa1b8b2 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -18,9 +18,9 @@ dependencies { compileOnly "org.opensearch:common-utils:${common_utils_version}" testImplementation group: 'org.mockito', name: 'mockito-core', version: '4.4.0' - implementation group: 'org.apache.commons', name: 'commons-text', version: '1.10.0' - implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1' - implementation group: 'org.json', name: 'json', version: '20230227' + compileOnly group: 'org.apache.commons', name: 'commons-text', version: '1.10.0' + compileOnly group: 'com.google.code.gson', name: 'gson', version: '2.10.1' + compileOnly group: 'org.json', name: 'json', version: '20230227' } jacocoTestReport { diff --git a/ml-algorithms/build.gradle b/ml-algorithms/build.gradle index 567a573d82..8c6a9ca0db 100644 --- a/ml-algorithms/build.gradle +++ b/ml-algorithms/build.gradle @@ -63,6 +63,7 @@ dependencies { implementation 'software.amazon.awssdk:apache-client' implementation 'com.amazonaws:aws-encryption-sdk-java:2.4.0' implementation 'com.jayway.jsonpath:json-path:2.8.0' + implementation group: 'org.json', name: 'json', version: '20230227' } configurations.all {