diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 6520e09..42ea2b4 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -31,7 +31,7 @@ jobs: id: setup-java with: distribution: "temurin" - java-version: "21" + java-version: "25" - name: Gradle build run: ./gradlew build -x test diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 576aa45..8cb2a2f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: uses: actions/setup-java@v5 with: distribution: 'temurin' - java-version: '21' + java-version: '25' - name: Checkout code uses: actions/checkout@v5 - name: Cache Gradle Dependencies diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 71a24d0..33c5cc2 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/setup-java@v5 with: distribution: 'temurin' - java-version: '21' + java-version: '25' cache: 'gradle' - name: Run tests run: | diff --git a/Dockerfile b/Dockerfile index 5870982..e324045 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM gcr.io/distroless/java21-debian12@sha256:995893ef4d670f7497394d8bc680ca61ae79bd6d4fedf23b4589028e91645aa4 +FROM gcr.io/distroless/java25-debian13@sha256:0ea0c4491a57effa3c49c669564b3642d591ed52a3928f22b4cf829bd2736a57 WORKDIR /app COPY build/install/*/lib /lib ENV JAVA_OPTS="-Dlogback.configurationFile=logback.xml" diff --git a/README.md b/README.md index 9ac3688..0b6af88 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Simple application to showcase a CRUD Rest API application in Kotlin ### Prerequisites -Make sure you have the Java JDK 21 installed +Make sure you have the Java JDK 25 installed You can check which version you have installed using this command: ``` bash script java -version diff --git a/build.gradle.kts b/build.gradle.kts index 3524fb1..971e97d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,7 @@ group = "io.github.MikAoJk" version = "1.0.0" -val javaVersion = 21 +val javaVersion = 25 val ktorVersion = "3.3.2" val junitJupiterVersion = "6.0.1" @@ -14,7 +14,7 @@ val postgresVersion = "42.7.8" plugins { - kotlin("jvm") version "2.2.21" + kotlin("jvm") version "2.3.0-Beta2" id("application") }