Unverified Commit 1f5cb697 authored by ysaito1001's avatar ysaito1001 Committed by GitHub
Browse files

Update JDK to 17 (#3592)

## Motivation and Context
Upgrade JDK to 17 in the repository

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent 6b59ba26
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ concurrency:

env:
  apt_dependencies: libssl-dev gnuplot jq
  java_version: 11
  java_version: 17
  rust_toolchain_components: clippy,rustfmt
  rust_nightly_version: nightly-2024-02-07

+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ jobs:
      with:
        distribution: corretto
        java-package: jdk
        java-version: 11
        java-version: 17
      # Rust is only used to `rustfmt` the generated code; doesn't need to match MSRV
    - name: Set up Rust
      uses: dtolnay/rust-toolchain@master
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ a suitable choice for implementing your web service.

## Pre-requisites

You will need install Java 11 to run the smithy-rs code generator and an
You will need install Java 17 to run the smithy-rs code generator and an
installation of Rust, including `cargo`, to compile the generated code.

(Optional) The [Cargo Lambda](https://cargo-lambda.info/) sub-command for
+2 −2
Original line number Diff line number Diff line
@@ -158,7 +158,7 @@ RUN set -eux; \
        git \
        glibc-langpack-en \
        go \
        java-11-amazon-corretto-headless \
        java-17-amazon-corretto-headless \
        make \
        openssl-devel \
        pkgconfig \
@@ -194,7 +194,7 @@ ENV PATH=$PATH:/usr/local/musl/bin/
ENV PATH=/opt/cargo/bin:$PATH \
    CARGO_HOME=/opt/cargo \
    RUSTUP_HOME=/opt/rustup \
    JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64 \
    JAVA_HOME=/usr/lib/jvm/java-17-amazon-corretto.x86_64 \
    GRADLE_USER_HOME=/home/build/.gradle \
    RUST_STABLE_VERSION=${rust_stable_version} \
    RUST_NIGHTLY_VERSION=${rust_nightly_version} \