From 7006365d17ceffeeeed632a49770da78cc3c938d Mon Sep 17 00:00:00 2001 From: Roberto Cella Date: Sat, 2 Nov 2024 11:33:32 +0100 Subject: [PATCH] upgrade project to java 23 --- .github/workflows/unit-test.yml | 2 +- Dockerfile | 2 +- README.md | 4 ++-- build.gradle | 2 +- qodana.yaml | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index b19d7a15..451c7032 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -33,7 +33,7 @@ jobs: uses: actions/setup-java@v4 with: distribution: temurin - java-version: 22 + java-version: 23 - name: Setup project and upload dependency graph uses: gradle/actions/setup-gradle@v4 diff --git a/Dockerfile b/Dockerfile index 5710c120..74a0dac1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ ARG LIBWEBP_SHA256=94ac053be5f8cb47a493d7a56b2b1b7328bab9cff24ecb89fa642284330d8 WORKDIR /app RUN curl "$LIBWEBP_URL" -o libwebp.tar.gz && \ - echo "$LIBWEBP_SHA256 libwebp.tar.gz" | sha256sum -c - && \ + echo "$LIBWEBP_SHA256 libwebp.tar.gz" | sha256sum -c - && \ tar -xzf libwebp.tar.gz --one-top-level=libwebp --strip-components=1 COPY settings.gradle build.gradle gradlew ./ COPY gradle ./gradle diff --git a/README.md b/README.md index 43628940..179c95d0 100644 --- a/README.md +++ b/README.md @@ -55,11 +55,11 @@ And it's done! ## How to set up the project -1. Install JDK 22 (or higher) +1. Install JDK 23 (or higher) 2. Clone the project and move into its folder 3. Run the command `./gradlew build -x test` 4. Import the project inside your IDE as a Gradle project -5. Ensure your IDE is correctly configured to use a Java 22 (or higher) JDK +5. Ensure your IDE is correctly configured to use a Java 23 (or higher) JDK ## How to run the bot locally diff --git a/build.gradle b/build.gradle index af896a66..96260c0a 100644 --- a/build.gradle +++ b/build.gradle @@ -60,7 +60,7 @@ description = 'Telegram bot to convert medias in the format required to be used java { toolchain { - languageVersion = JavaLanguageVersion.of(22) + languageVersion = JavaLanguageVersion.of(23) } } diff --git a/qodana.yaml b/qodana.yaml index 42bdd635..86739f60 100644 --- a/qodana.yaml +++ b/qodana.yaml @@ -3,5 +3,5 @@ profile: name: qodana.recommended include: - name: VulnerableLibrariesGlobal -linter: jetbrains/qodana-jvm:latest -projectJDK: temurin-22 +linter: jetbrains/qodana-jvm:2024.2 +projectJDK: temurin-23