Skip to content

Commit 380901f

Browse files
Resotre java min compatible to 21 and remove 24 (#902)
Signed-off-by: Peter Zhu <[email protected]>
1 parent f4699eb commit 380901f

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.github/workflows/gradle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
java:
16-
- 24
16+
- 21
1717
- 25
1818
fail-fast: false
1919
runs-on: [ubuntu-latest]

.github/workflows/maven-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/setup-java@v3
2121
with:
2222
distribution: temurin # Temurin is a distribution of adoptium
23-
java-version: 25
23+
java-version: 21
2424
- uses: actions/checkout@v3
2525

2626
- name: Load secret

build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,9 @@ opensearchplugin {
140140
classname = 'org.opensearch.performanceanalyzer.PerformanceAnalyzerPlugin'
141141
}
142142

143-
def javaVersion = JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_25) ?
144-
JavaVersion.VERSION_25 : JavaVersion.VERSION_21
145-
146143
java {
147-
sourceCompatibility = javaVersion
148-
targetCompatibility = javaVersion
144+
sourceCompatibility = JavaVersion.VERSION_21
145+
targetCompatibility = JavaVersion.VERSION_21
149146
}
150147

151148
compileJava {

0 commit comments

Comments
 (0)