Skip to content

Commit

Permalink
Set baseline JDK version to JDK-21 (#999)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Widdis <widdis@gmail.com>
  • Loading branch information
dbwiddis committed Jun 10, 2024
1 parent 31bc290 commit 1c6a373
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 21
distribution: temurin
- name: Run Gradle Check
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 11
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 21
distribution: temurin
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
Expand Down
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ dependencies {
def guavaFailureAccessVersion = "1.0.2"
def aopallianceVersion = "1.0"
def slf4jVersion = "1.7.36"
def commonsLoggingVersion = "1.2"

api("org.opensearch:opensearch:${opensearchVersion}")
implementation("org.apache.logging.log4j:log4j-api:${log4jVersion}")
Expand Down Expand Up @@ -231,10 +232,16 @@ dependencies {
force("org.apache.logging.log4j:log4j-core:${log4jVersion}")
force("org.apache.logging.log4j:log4j-jul:${log4jVersion}")
force("org.slf4j:slf4j-api:${slf4jVersion}")
force("commons-logging:commons-logging:${commonsLoggingVersion}")
}
}
}

// Compile SDK 2.x for JDK 21
tasks.withType(JavaCompile) {
options.release.set(21)
}

// this task runs the helloworld sample extension
task helloWorld(type: JavaExec) {
group = 'Execution'
Expand Down

0 comments on commit 1c6a373

Please sign in to comment.