From 64b616cba28470bc77f3bea8efbf2017c6493923 Mon Sep 17 00:00:00 2001 From: Jendrik Johannes Date: Mon, 16 Dec 2024 14:19:30 +0100 Subject: [PATCH] ci: pin exact Java version This is important for deterministic and reproducible builds. Without this, the version automatically changes when there is a new release. Signed-off-by: Jendrik Johannes --- .github/workflows/build.yml | 8 ++++---- .github/workflows/disabled/main.yml | 2 +- .github/workflows/disabled/previewnet.yml | 4 ++-- .github/workflows/disabled/testnet.yml | 6 +++--- .github/workflows/pages.yml | 2 +- .github/workflows/release-artifacts.yml | 4 ++-- gradle/toolchain-versions.properties | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d5a809d12..a19a2decb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,7 +43,7 @@ jobs: uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 with: distribution: temurin - java-version: 17 + java-version: '17.0.13' - name: Setup Gradle uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1 @@ -78,7 +78,7 @@ jobs: uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 with: distribution: temurin - java-version: 17 + java-version: '17.0.13' - name: Setup Gradle uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1 @@ -133,7 +133,7 @@ jobs: uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 with: distribution: temurin - java-version: 17 + java-version: '17.0.13' - name: Setup Android SDK uses: android-actions/setup-android@9fc6c4e9069bf8d3d10b2204b1fb8f6ef7065407 # v3.2.2 @@ -190,7 +190,7 @@ jobs: uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 with: distribution: temurin - java-version: 17 + java-version: '17.0.13' - name: Setup Gradle uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1 diff --git a/.github/workflows/disabled/main.yml b/.github/workflows/disabled/main.yml index 981878d67..d0dae7d70 100644 --- a/.github/workflows/disabled/main.yml +++ b/.github/workflows/disabled/main.yml @@ -52,7 +52,7 @@ jobs: - name: Set up JDK 17 uses: actions/setup-java@v2 with: - java-version: '17' + java-version: '17.0.13' distribution: 'adopt' - name: Fetch Hedera SDK uses: actions/checkout@v2 diff --git a/.github/workflows/disabled/previewnet.yml b/.github/workflows/disabled/previewnet.yml index 801ddf4ff..91cb0285d 100644 --- a/.github/workflows/disabled/previewnet.yml +++ b/.github/workflows/disabled/previewnet.yml @@ -13,7 +13,7 @@ jobs: - name: Set up JDK 17 uses: actions/setup-java@v2 with: - java-version: '17' + java-version: '17.0.13' distribution: 'adopt' - name: Cache Gradle packages uses: actions/cache@v2 @@ -35,7 +35,7 @@ jobs: - name: Set up JDK 17 uses: actions/setup-java@v2 with: - java-version: '17' + java-version: '17.0.13' distribution: 'adopt' - name: Cache Gradle packages uses: actions/cache@v2 diff --git a/.github/workflows/disabled/testnet.yml b/.github/workflows/disabled/testnet.yml index cabaece6c..fea9861da 100644 --- a/.github/workflows/disabled/testnet.yml +++ b/.github/workflows/disabled/testnet.yml @@ -15,7 +15,7 @@ jobs: - name: Set up JDK 17 uses: actions/setup-java@v2 with: - java-version: '17' + java-version: '17.0.13' distribution: 'adopt' - name: Cache Gradle packages uses: actions/cache@v2 @@ -45,7 +45,7 @@ jobs: - name: Set up JDK 17 uses: actions/setup-java@v2 with: - java-version: '17' + java-version: '17.0.13' distribution: 'adopt' - name: Cache Gradle packages uses: actions/cache@v2 @@ -76,7 +76,7 @@ jobs: - name: Set up JDK 17 uses: actions/setup-java@v2 with: - java-version: '17' + java-version: '17.0.13' distribution: 'adopt' - name: Cache Gradle packages uses: actions/cache@v2 diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index e84271725..695c432fd 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -35,7 +35,7 @@ jobs: uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 with: distribution: temurin - java-version: 17 + java-version: '17.0.13' - name: Setup Gradle uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1 diff --git a/.github/workflows/release-artifacts.yml b/.github/workflows/release-artifacts.yml index fb5d8aa71..56e3f6226 100644 --- a/.github/workflows/release-artifacts.yml +++ b/.github/workflows/release-artifacts.yml @@ -52,7 +52,7 @@ jobs: uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 with: distribution: temurin - java-version: 17 + java-version: '17.0.13' - name: Setup Gradle uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1 @@ -114,7 +114,7 @@ jobs: uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 with: distribution: temurin - java-version: 17 + java-version: '17.0.13' - name: Setup Gradle uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1 diff --git a/gradle/toolchain-versions.properties b/gradle/toolchain-versions.properties index f6397fb7d..df33d526a 100644 --- a/gradle/toolchain-versions.properties +++ b/gradle/toolchain-versions.properties @@ -1 +1 @@ -jdk=17.0.12 +jdk=17.0.13