Skip to content

Commit

Permalink
change dependencies to ml-algorithms
Browse files Browse the repository at this point in the history
Signed-off-by: zane-neo <[email protected]>
  • Loading branch information
zane-neo committed Nov 24, 2023
1 parent 5a15ae4 commit a82b141
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 22 deletions.
31 changes: 28 additions & 3 deletions ml-algorithms/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,38 @@ dependencies {
implementation 'com.amazonaws:aws-encryption-sdk-java:2.4.1'
implementation 'com.jayway.jsonpath:json-path:2.8.0'
implementation group: 'org.json', name: 'json', version: '20231013'
implementation(group: 'opensearch-sql', name: 'opensearch-sql', version: "${common_utils_version}") {
exclude module: 'legacy'
exclude module: 'prometheus'
exclude module: 'datasources'
exclude module: 'spark'
exclude module: 'common'
exclude module: 'core'
exclude module: 'protocol'
exclude module: 'opensearch'
}
implementation(group: 'opensearch-sql', name: 'ppl', version: "${common_utils_version}") {
exclude module: 'common'
exclude module: 'core'
exclude module: 'protocol'
exclude module: 'opensearch'
exclude group: 'org.reflections', module: 'reflections'
exclude group: 'com.google.guava', module: 'guava'
exclude group: 'org.json', module: 'json'
}
implementation(group: 'opensearch-sql', name: 'protocol', version: "${common_utils_version}") {
exclude group: 'com.google.guava', module: 'guava'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-core'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
exclude group: 'com.fasterxml.jackson.dataformat', module: 'jackson-dataformat-cbor'
exclude group: 'com.google.code.gson', module: 'gson'
exclude module: 'core'
exclude module: 'opensearch'
}
}

configurations.all {
resolutionStrategy.force 'com.google.protobuf:protobuf-java:3.21.9'
// resolutionStrategy.force 'com.fasterxml.jackson.core:jackson-annotations:2.16.0'
// resolutionStrategy.force 'org.opensearch.client:opensearch-rest-client:2.12.0-SNAPSHOT'
// resolutionStrategy.force 'com.fasterxml.jackson.core:jackson-databind:2.16.0'
}

jacocoTestReport {
Expand Down
29 changes: 14 additions & 15 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,39 +48,38 @@ dependencies {
implementation project(':opensearch-ml-memory')

implementation group: 'org.opensearch', name: 'opensearch', version: "${opensearch_version}"
implementation (group: 'opensearch-sql', name: 'opensearch-sql', version: "${common_utils_version}") {
implementation "org.opensearch.client:opensearch-rest-client:${opensearch_version}"
implementation "org.opensearch:common-utils:${common_utils_version}"
implementation("com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}")
implementation("com.fasterxml.jackson.core:jackson-databind:${versions.jackson_databind}")
implementation group: 'com.google.guava', name: 'guava', version: '32.0.1-jre'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.10'
implementation group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
implementation "org.apache.logging.log4j:log4j-slf4j-impl:2.19.0"
testImplementation group: 'commons-io', name: 'commons-io', version: '2.11.0'
implementation group: 'org.apache.commons', name: 'commons-text', version: '1.10.0'
implementation(group: 'opensearch-sql', name: 'opensearch-sql', version: "${common_utils_version}") {
exclude module: 'legacy'
exclude module: 'opensearch'
exclude module: 'prometheus'
exclude module: 'datasources'
exclude module: 'spark'
}
implementation (group: 'opensearch-sql', name: 'ppl', version: "${common_utils_version}") {
implementation(group: 'opensearch-sql', name: 'ppl', version: "${common_utils_version}") {
exclude group: 'org.reflections', module: 'reflections'
exclude group: 'com.google.guava', module: 'guava'
exclude group: 'org.json', module: 'json'
exclude module: 'common'
exclude module: 'core'
}
implementation (group: 'opensearch-sql', name: 'protocol', version: "${common_utils_version}") {
implementation(group: 'opensearch-sql', name: 'protocol', version: "${common_utils_version}") {
exclude group: 'com.google.guava', module: 'guava'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-core'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
exclude group: 'com.fasterxml.jackson.dataformat', module: 'jackson-dataformat-cbor'
exclude group: 'com.google.code.gson', module: 'gson'
}
implementation "org.opensearch.client:opensearch-rest-client:${opensearch_version}"
implementation "org.opensearch:common-utils:${common_utils_version}"
implementation("com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}")
implementation("com.fasterxml.jackson.core:jackson-databind:${versions.jackson_databind}")
implementation group: 'com.google.guava', name: 'guava', version: '32.0.1-jre'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.10'
implementation group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
implementation "org.apache.logging.log4j:log4j-slf4j-impl:2.19.0"
testImplementation group: 'commons-io', name: 'commons-io', version: '2.11.0'
implementation group: 'org.apache.commons', name: 'commons-text', version: '1.10.0'

checkstyle "com.puppycrawl.tools:checkstyle:${project.checkstyle.toolVersion}"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
import org.opensearch.ml.model.MLModelCacheHelper;
import org.opensearch.ml.model.MLModelManager;
//import org.opensearch.ml.rest.MyRestPPLQueryAction;
import org.opensearch.ml.rest.MyRestPPLQueryAction;
//import org.opensearch.ml.rest.MyRestPPLQueryAction;
import org.opensearch.ml.rest.RestMLCreateConnectorAction;
import org.opensearch.ml.rest.RestMLDeleteConnectorAction;
import org.opensearch.ml.rest.RestMLDeleteModelAction;
Expand Down Expand Up @@ -556,7 +556,7 @@ public List<RestHandler> getRestHandlers(
RestMemoryGetInteractionsAction restListInteractionsAction = new RestMemoryGetInteractionsAction();
RestMemoryDeleteConversationAction restDeleteConversationAction = new RestMemoryDeleteConversationAction();
RestMLUpdateConnectorAction restMLUpdateConnectorAction = new RestMLUpdateConnectorAction(mlFeatureEnabledSetting);
MyRestPPLQueryAction restPPLQueryAction = new MyRestPPLQueryAction();
// MyRestPPLQueryAction restPPLQueryAction = new MyRestPPLQueryAction();
return ImmutableList
.of(
restMLStatsAction,
Expand Down Expand Up @@ -590,8 +590,8 @@ public List<RestHandler> getRestHandlers(
restCreateInteractionAction,
restListInteractionsAction,
restDeleteConversationAction,
restMLUpdateConnectorAction,
restPPLQueryAction
restMLUpdateConnectorAction
// restPPLQueryAction
);
}

Expand Down

0 comments on commit a82b141

Please sign in to comment.