From 3770e0f6e15930229632db12c40f5494ef68f3bd Mon Sep 17 00:00:00 2001 From: Andrei Punko Date: Mon, 11 Mar 2024 13:47:47 +0300 Subject: [PATCH] Bump JDK version: 17->21 --- .github/workflows/gradle-pr.yml | 2 +- .github/workflows/gradle.yml | 2 +- README.md | 2 +- build.gradle | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gradle-pr.yml b/.github/workflows/gradle-pr.yml index c088585..593af62 100644 --- a/.github/workflows/gradle-pr.yml +++ b/.github/workflows/gradle-pr.yml @@ -14,7 +14,7 @@ jobs: uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: '17' + java-version: '21' cache: 'gradle' - name: Grant execute permission for gradlew diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 4f58e73..c764d71 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -15,7 +15,7 @@ jobs: uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: '17' + java-version: '21' cache: 'gradle' - name: Grant execute permission for gradlew diff --git a/README.md b/README.md index f0751cb..dce042b 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Donate ## Prerequisites -- JDK 17 +- JDK 21 - Gradle isn't required because of embedded Gradle used in the project ## How to build diff --git a/build.gradle b/build.gradle index e00ba8d..ca3b60a 100644 --- a/build.gradle +++ b/build.gradle @@ -34,7 +34,8 @@ dependencies { group = 'by.andd3dfx' version = '1.0-SNAPSHOT' description = 'java-interview-coding' -java.sourceCompatibility = JavaVersion.VERSION_17 +java.sourceCompatibility = JavaVersion.VERSION_21 +java.targetCompatibility = JavaVersion.VERSION_21 tasks.withType(JavaCompile) { options.encoding = 'UTF-8'