Skip to content
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

add support for JDK 17 #248

Merged
merged 1 commit into from
Mar 24, 2022
Merged

Conversation

Zhangxunmt
Copy link
Collaborator

Description

To Support build ML-Common using JDK 17, we also need to upgrade the following dependencies.

java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor -> upgrade to "io.freefair.lombok" version "6.4.1"
opensearch-ml-algorithms:test errors -> upgrade to name: 'mockito-core', version: '4.4.0'
For be consistent with all plugins -> sourceCompatibility = targetCompatibility = JavaVersion.VERSION_11

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --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.

@@ -24,7 +24,7 @@ dependencies {
implementation files('lib/randomcutforest-parkservices-2.0.1.jar')
implementation files('lib/randomcutforest-core-2.0.1.jar')
testImplementation group: 'junit', name: 'junit', version: '4.12'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '3.9.0'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '4.4.0'
testImplementation group: 'org.mockito', name: 'mockito-inline', version: '3.9.0'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the we use latest version of mockito-core. Why not use the latest version of mockito-inline: 4.4.0?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch. this is a left over. should use 4.4 for consistency. Updated in the revision.

Signed-off-by: Xun Zhang <[email protected]>
Copy link
Collaborator

@ylwu-amzn ylwu-amzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the change

@ylwu-amzn ylwu-amzn requested a review from jackiehanyang March 24, 2022 22:30
@Zhangxunmt Zhangxunmt merged commit a4cd581 into opensearch-project:main Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants