File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ jobs:
27
27
runs-on : ubuntu-latest
28
28
steps :
29
29
- uses : actions/checkout@v4
30
- - name : Set up JDK 11
30
+ - name : Set up JDK 21
31
31
uses : actions/setup-java@v4
32
32
with :
33
- java-version : 11
33
+ java-version : 21
34
34
distribution : temurin
35
35
- name : Run Gradle Check
36
36
run : |
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ jobs:
16
16
steps :
17
17
- name : Checkout
18
18
uses : actions/checkout@v4
19
- - name : Set up JDK 11
19
+ - name : Set up JDK 21
20
20
uses : actions/setup-java@v4
21
21
with :
22
- java-version : 11
22
+ java-version : 21
23
23
distribution : temurin
24
24
- name : Configure AWS credentials
25
25
uses : aws-actions/configure-aws-credentials@v4
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ dependencies {
178
178
def guavaFailureAccessVersion = " 1.0.2"
179
179
def aopallianceVersion = " 1.0"
180
180
def slf4jVersion = " 1.7.36"
181
+ def commonsLoggingVersion = " 1.2"
181
182
182
183
api(" org.opensearch:opensearch:${ opensearchVersion} " )
183
184
implementation(" org.apache.logging.log4j:log4j-api:${ log4jVersion} " )
@@ -231,10 +232,16 @@ dependencies {
231
232
force(" org.apache.logging.log4j:log4j-core:${ log4jVersion} " )
232
233
force(" org.apache.logging.log4j:log4j-jul:${ log4jVersion} " )
233
234
force(" org.slf4j:slf4j-api:${ slf4jVersion} " )
235
+ force(" commons-logging:commons-logging:${ commonsLoggingVersion} " )
234
236
}
235
237
}
236
238
}
237
239
240
+ // Compile SDK 2.x for JDK 21
241
+ tasks. withType(JavaCompile ) {
242
+ options. release. set(21 )
243
+ }
244
+
238
245
// this task runs the helloworld sample extension
239
246
task helloWorld (type : JavaExec ) {
240
247
group = ' Execution'
You can’t perform that action at this time.
0 commit comments