From 467451b9acdff8fdb7e46940af95b41eeb669ffb Mon Sep 17 00:00:00 2001 From: Neko Qiqi Date: Thu, 14 Mar 2024 21:45:21 +0800 Subject: [PATCH] update jdk 19 -> 21 Signed-off-by: Neko Qiqi --- .github/workflows/android.yml | 4 ++-- .github/workflows/android_pr.yml | 4 ++-- app/build.gradle | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index aaf166e93d..9ffd4b18c5 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -25,10 +25,10 @@ jobs: fetch-depth: 0 submodules: true - - name: Set up JDK 20 + - name: Set up JDK 21 uses: actions/setup-java@v4 with: - java-version: '20' + java-version: '21' distribution: 'temurin' cache: gradle diff --git a/.github/workflows/android_pr.yml b/.github/workflows/android_pr.yml index b02a24a3f7..281dcdea0a 100644 --- a/.github/workflows/android_pr.yml +++ b/.github/workflows/android_pr.yml @@ -25,10 +25,10 @@ jobs: fetch-depth: 0 submodules: true - - name: Set up JDK 20 + - name: Set up JDK 21 uses: actions/setup-java@v4 with: - java-version: '20' + java-version: '21' distribution: 'temurin' cache: gradle diff --git a/app/build.gradle b/app/build.gradle index 088dbff715..34ce7784ba 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -141,12 +141,12 @@ android { } compileOptions { - sourceCompatibility JavaVersion.VERSION_19 - targetCompatibility JavaVersion.VERSION_19 + sourceCompatibility JavaVersion.VERSION_21 + targetCompatibility JavaVersion.VERSION_21 } kotlinOptions { - jvmTarget = JavaVersion.VERSION_19.toString() + jvmTarget = JavaVersion.VERSION_21.toString() } }