Skip to content

Commit b6c9f58

Browse files
authored
upgrade jdk baseline to 21 (#336)
* upgrade jdk baseline to 21 Signed-off-by: zane-neo <[email protected]> * fix labeler issue Signed-off-by: zane-neo <[email protected]> --------- Signed-off-by: zane-neo <[email protected]>
1 parent f14418b commit b6c9f58

File tree

4 files changed

+21
-20
lines changed

4 files changed

+21
-20
lines changed

.github/labeler.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
backport 2.x:
2-
- "*"
3-
- "*/*"
4-
- "*/**/*"
5-
- "*/**/**/*"
6-
- "*/**/**/**/*"
7-
- "*/**/**/**/**/*"
8-
- "*/**/**/**/**/**/*"
9-
- "*/**/**/**/**/**/**/*"
10-
- "*/**/**/**/**/**/**/**/*"
11-
- "*/**/**/**/**/**/**/**/**/*"
12-
- ".github/**/*"
1+
#backport 2.x:
2+
# - "*"
3+
# - "*/*"
4+
# - "*/**/*"
5+
# - "*/**/**/*"
6+
# - "*/**/**/**/*"
7+
# - "*/**/**/**/**/*"
8+
# - "*/**/**/**/**/**/*"
9+
# - "*/**/**/**/**/**/**/*"
10+
# - "*/**/**/**/**/**/**/**/*"
11+
# - "*/**/**/**/**/**/**/**/**/*"
12+
# - ".github/**/*"
1313

1414
infra:
1515
- ".github/**/*"

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
needs: Get-CI-Image-Tag
3636
strategy:
3737
matrix:
38-
java: [11, 17, 21]
38+
java: [21]
3939
name: Build and Test skills plugin on Linux
4040
runs-on: ubuntu-latest
4141
container:
@@ -69,7 +69,7 @@ jobs:
6969
build-MacOS:
7070
strategy:
7171
matrix:
72-
java: [11, 17, 21]
72+
java: [21]
7373

7474
name: Build and Test skills Plugin on MacOS
7575
needs: Get-CI-Image-Tag
@@ -94,7 +94,7 @@ jobs:
9494
build-windows:
9595
strategy:
9696
matrix:
97-
java: [11, 17, 21]
97+
java: [21]
9898
name: Build and Test skills plugin on Windows
9999
needs: Get-CI-Image-Tag
100100
runs-on: windows-latest

.github/workflows/test_security.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
integ-test-with-security-linux:
1717
strategy:
1818
matrix:
19-
java: [11, 17, 21]
19+
java: [21]
2020

2121
name: Run Security Integration Tests on Linux
2222
runs-on: ubuntu-latest
@@ -40,4 +40,4 @@ jobs:
4040
# switching the user, as OpenSearch cluster can only be started as root/Administrator on linux-deb/linux-rpm/windows-zip.
4141
run: |
4242
chown -R 1000:1000 `pwd`
43-
su `id -un 1000` -c "whoami && java -version && ./gradlew integTest -Dsecurity.enabled=true"
43+
su `id -un 1000` -c "whoami && java -version && ./gradlew integTest -Dsecurity.enabled=true"

build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import org.opensearch.gradle.test.RestIntegTestTask
77
import java.util.concurrent.Callable
8-
import org.opensearch.gradle.testclusters.OpenSearchCluster
98
import java.nio.file.Paths
109
import com.github.jengelman.gradle.plugins.shadow.ShadowPlugin
1110

@@ -65,8 +64,10 @@ allprojects {
6564
version = "${opensearch_build}"
6665
}
6766

68-
targetCompatibility = JavaVersion.VERSION_11
69-
sourceCompatibility = JavaVersion.VERSION_11
67+
java {
68+
targetCompatibility = JavaVersion.VERSION_21
69+
sourceCompatibility = JavaVersion.VERSION_21
70+
}
7071

7172
apply plugin: 'java'
7273
apply plugin: 'jacoco'

0 commit comments

Comments
 (0)