Skip to content

Commit

Permalink
Add JDK-20 support (opensearch-project#986)
Browse files Browse the repository at this point in the history
* Add JDK-20 support

Signed-off-by: Andriy Redko <[email protected]>

* Add JDK-20 to CI build matrix

Signed-off-by: Andriy Redko <[email protected]>

* Update Mockito to 5.3.1

Signed-off-by: Andriy Redko <[email protected]>

---------

Signed-off-by: Andriy Redko <[email protected]>
  • Loading branch information
reta authored Jun 14, 2023
1 parent bb7582c commit bdd1388
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
Build-ml:
strategy:
matrix:
java: [11, 17]
java: [11, 17, 20]

name: Build and Test MLCommons Plugin
runs-on: ubuntu-latest
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
Build-ml-windows:
strategy:
matrix:
java: [11, 17]
java: [11, 17, 20]
name: Build and Test MLCommons Plugin on Windows
runs-on: windows-latest

Expand Down
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ allprojects {
plugins.withId('java') {
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_11
}
plugins.withId('jacoco') {
jacoco.toolVersion = '0.8.10'
}
}

subprojects {
Expand All @@ -82,4 +85,3 @@ task updateVersion {
ant.replaceregexp(file:'build.gradle', match: '"opensearch.version", "\\d.*"', replace: '"opensearch.version", "' + newVersion.tokenize('-')[0] + '-SNAPSHOT"', flags:'g', byline:true)
}
}

2 changes: 1 addition & 1 deletion client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies {
implementation project(':opensearch-ml-common')
compileOnly group: 'org.opensearch', name: 'opensearch', version: "${opensearch_version}"
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '4.4.0'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '5.3.1'

}

Expand Down
4 changes: 4 additions & 0 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ dependencies {
testImplementation group: 'org.mockito', name: 'mockito-core', version: '4.4.0'
}

lombok {
version = "1.18.28"
}

jacocoTestReport {
reports {
html.required = true
Expand Down
7 changes: 5 additions & 2 deletions ml-algorithms/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ dependencies {
implementation group: 'io.protostuff', name: 'protostuff-api', version: '1.8.0'
implementation group: 'io.protostuff', name: 'protostuff-collectionschema', version: '1.8.0'
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '4.4.0'
testImplementation group: 'org.mockito', name: 'mockito-inline', version: '4.4.0'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '5.3.1'
implementation group: 'com.google.guava', name: 'guava', version: '31.0.1-jre'
implementation platform("ai.djl:bom:0.19.0")
implementation group: 'ai.djl.pytorch', name: 'pytorch-model-zoo'
Expand All @@ -55,6 +54,10 @@ dependencies {
}
}

lombok {
version = "1.18.28"
}

configurations.all {
resolutionStrategy.force 'com.google.protobuf:protobuf-java:3.21.9'
}
Expand Down
4 changes: 4 additions & 0 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ checkstyle {
toolVersion = '8.38'
}

lombok {
version = "1.18.28"
}

opensearchplugin {
name 'opensearch-ml'
description 'machine learning plugin for opensearch'
Expand Down

0 comments on commit bdd1388

Please sign in to comment.