From e31faf9054b9b7a38f8bd202bcecdd6fba19c112 Mon Sep 17 00:00:00 2001 From: Hossain Khan Date: Sun, 22 Dec 2024 09:50:01 -0500 Subject: [PATCH] [UPDATE] JDK and gradle version for github action --- .github/workflows/build.yml | 3 ++- .github/workflows/static-docs.yml | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bec53e3..7e0e50f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,7 +29,8 @@ jobs: - name: set up JDK 17 uses: actions/setup-java@v4 with: - java-version: '17' + # Use JDK LTS version (keep this in sync with other workflows) + java-version: '21' distribution: 'temurin' cache: gradle diff --git a/.github/workflows/static-docs.yml b/.github/workflows/static-docs.yml index b0e8a56..e00dd60 100644 --- a/.github/workflows/static-docs.yml +++ b/.github/workflows/static-docs.yml @@ -1,4 +1,5 @@ # Simple workflow for deploying static content to GitHub Pages +# Publishes dokka generated kotlin documentation to GitHub Pages name: Deploy static content to Pages on: @@ -35,6 +36,7 @@ jobs: - name: Set up JDK uses: actions/setup-java@v4 with: + # Use JDK LTS version (keep this in sync with other workflows) java-version: '21' distribution: 'temurin' @@ -43,7 +45,8 @@ jobs: - name: Setup Gradle uses: gradle/gradle-build-action@v3 with: - gradle-version: '8.4' + # Match gradle/wrapper/gradle-wrapper.properties version + gradle-version: '8.12' - name: Build with Gradle run: gradle clean dokkaGeneratePublicationHtml