Skip to content

Commit bdd1388

Browse files
authoredJun 14, 2023
Add JDK-20 support (#986)
* Add JDK-20 support Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Add JDK-20 to CI build matrix Signed-off-by: Andriy Redko <andriy.redko@aiven.io> * Update Mockito to 5.3.1 Signed-off-by: Andriy Redko <andriy.redko@aiven.io> --------- Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
1 parent bb7582c commit bdd1388

File tree

6 files changed

+19
-6
lines changed

6 files changed

+19
-6
lines changed
 

‎.github/workflows/CI-workflow.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
Build-ml:
1212
strategy:
1313
matrix:
14-
java: [11, 17]
14+
java: [11, 17, 20]
1515

1616
name: Build and Test MLCommons Plugin
1717
runs-on: ubuntu-latest
@@ -89,7 +89,7 @@ jobs:
8989
Build-ml-windows:
9090
strategy:
9191
matrix:
92-
java: [11, 17]
92+
java: [11, 17, 20]
9393
name: Build and Test MLCommons Plugin on Windows
9494
runs-on: windows-latest
9595

‎build.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ allprojects {
5757
plugins.withId('java') {
5858
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_11
5959
}
60+
plugins.withId('jacoco') {
61+
jacoco.toolVersion = '0.8.10'
62+
}
6063
}
6164

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

‎client/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies {
1616
implementation project(':opensearch-ml-common')
1717
compileOnly group: 'org.opensearch', name: 'opensearch', version: "${opensearch_version}"
1818
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
19-
testImplementation group: 'org.mockito', name: 'mockito-core', version: '4.4.0'
19+
testImplementation group: 'org.mockito', name: 'mockito-core', version: '5.3.1'
2020

2121
}
2222

‎common/build.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ dependencies {
1919
testImplementation group: 'org.mockito', name: 'mockito-core', version: '4.4.0'
2020
}
2121

22+
lombok {
23+
version = "1.18.28"
24+
}
25+
2226
jacocoTestReport {
2327
reports {
2428
html.required = true

‎ml-algorithms/build.gradle

+5-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ dependencies {
3232
implementation group: 'io.protostuff', name: 'protostuff-api', version: '1.8.0'
3333
implementation group: 'io.protostuff', name: 'protostuff-collectionschema', version: '1.8.0'
3434
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
35-
testImplementation group: 'org.mockito', name: 'mockito-core', version: '4.4.0'
36-
testImplementation group: 'org.mockito', name: 'mockito-inline', version: '4.4.0'
35+
testImplementation group: 'org.mockito', name: 'mockito-core', version: '5.3.1'
3736
implementation group: 'com.google.guava', name: 'guava', version: '31.0.1-jre'
3837
implementation platform("ai.djl:bom:0.19.0")
3938
implementation group: 'ai.djl.pytorch', name: 'pytorch-model-zoo'
@@ -55,6 +54,10 @@ dependencies {
5554
}
5655
}
5756

57+
lombok {
58+
version = "1.18.28"
59+
}
60+
5861
configurations.all {
5962
resolutionStrategy.force 'com.google.protobuf:protobuf-java:3.21.9'
6063
}

‎plugin/build.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ checkstyle {
3535
toolVersion = '8.38'
3636
}
3737

38+
lombok {
39+
version = "1.18.28"
40+
}
41+
3842
opensearchplugin {
3943
name 'opensearch-ml'
4044
description 'machine learning plugin for opensearch'

0 commit comments

Comments
 (0)
Please sign in to comment.