build: Update Gradle to 9.7.0 #65
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # In-Game Account Switcher is a third-party mod for Minecraft Java Edition that | |
| # allows you to change your logged in account in-game, without restarting it. | |
| # | |
| # Copyright (C) 2015-2022 The_Fireplace | |
| # Copyright (C) 2021-2026 VidTu | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU Lesser General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| # GNU Lesser General Public License for more details. | |
| # | |
| # You should have received a copy of the GNU Lesser General Public License | |
| # along with this program. If not, see <https://www.gnu.org/licenses/> | |
| name: 'Build (Main)' | |
| permissions: { } | |
| concurrency: | |
| group: 'main' | |
| on: | |
| push: | |
| branches: [ 'main' ] | |
| workflow_dispatch: | |
| jobs: | |
| main: | |
| name: 'Build (Main)' | |
| runs-on: 'ubuntu-26.04' | |
| timeout-minutes: 60 | |
| permissions: | |
| contents: 'write' | |
| env: | |
| GRADLE_OPTS: '-Dorg.gradle.java.installations.auto-download=false' | |
| steps: | |
| - name: 'Checkout' | |
| timeout-minutes: 1 | |
| uses: 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1' # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: 'Setup JDK (17)' | |
| timeout-minutes: 1 | |
| uses: 'actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961' # v5.7.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17.0.20' | |
| - name: 'Setup JDK (21)' | |
| timeout-minutes: 1 | |
| uses: 'actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961' # v5.7.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21.0.12' | |
| - name: 'Setup JDK (25)' | |
| timeout-minutes: 1 | |
| uses: 'actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961' # v5.7.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '25.0.4' | |
| - name: 'Setup Gradle' | |
| timeout-minutes: 10 | |
| uses: 'gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb' # v6.3.0 | |
| with: | |
| # Generate with either: | |
| # 1. Linux/macOS/Unix (OpenSSL): openssl rand -base64 32 | |
| # 2. Linux/macOS/Unix: cat /dev/random | head -c32 | base64 | |
| # 3. Windows (PowerShell): $bytes=New-Object byte[] 32;[Security.Cryptography.RandomNumberGenerator]::Create().GetBytes($bytes);[Convert]::ToBase64String($bytes) | |
| cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
| dependency-graph: 'generate-and-submit' | |
| - name: 'Build (Main)' | |
| timeout-minutes: 60 | |
| run: './gradlew assemble' | |
| - name: 'Upload' | |
| timeout-minutes: 10 | |
| uses: 'actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a' # v7.0.1 | |
| with: | |
| name: 'Artifacts' | |
| path: 'build/libs/' |