-
Notifications
You must be signed in to change notification settings - Fork 186
upgrade dependencies to make it compatible with AD #4412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feature/mcorr
Are you sure you want to change the base?
upgrade dependencies to make it compatible with AD #4412
Conversation
Signed-off-by: Jackie <[email protected]>
| configurations.all { | ||
| // Force spotless depending on newer version of guava due to CVE-2023-2976. Remove after spotless upgrades. | ||
| resolutionStrategy.force "com.google.guava:guava:32.1.3-jre" | ||
| resolutionStrategy.force "com.google.guava:guava:33.4.5-jre" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be both plugins can take version from core: https://github.com/opensearch-project/OpenSearch/blob/main/gradle/libs.versions.toml#L23 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, AD needs it for a resource permission related change from security plugin side - opensearch-project/anomaly-detection@ee8e38d They are planning to make this change for all plugins just AD is the first one onboarded
| configurations.all { | ||
| // Force spotless depending on newer version of guava due to CVE-2023-2976. Remove after spotless upgrades. | ||
| resolutionStrategy.force "com.google.guava:guava:32.1.3-jre" | ||
| resolutionStrategy.force "com.google.guava:guava:33.4.5-jre" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT:
We are forcing the newer version in the root module, but looks like other modules still declare older versions 32.1.3
Should we change it in all the packages as well? This would be more for overall consistency since the resolutionStrategy.force in the root module would ensure all the modules use the latest version declared here.
Description
In AD Detection Insights feature, we're calling ml-commons metrics correlation algorithm from AD which adds ml-commons as a runtime dependency. So making some dependency updates to make AD and ml-commons run in the same JVM runtime inside that container and communicate via transport actions.
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
--signoff.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.