Skip to content

Commit

Permalink
Upgrade project to Java 23 (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
rob93c authored Nov 8, 2024
1 parent b2187fb commit 7519957
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down
4 changes: 2 additions & 2 deletions qodana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7519957

Please sign in to comment.