mirror of
https://github.com/ViaVersion/ViaForge.git
synced 2024-12-21 16:37:50 +01:00
Auto: Migrate to setup-gradle action
This commit is contained in:
parent
9d75c110c4
commit
9a55272d40
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@ -9,23 +9,14 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Validate Gradle Wrapper
|
||||
uses: gradle/actions/wrapper-validation@v4
|
||||
- name: Set up Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: 21
|
||||
distribution: 'temurin'
|
||||
check-latest: true
|
||||
- name: Cache Dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew shadowJar
|
||||
- name: Upload Build Artifacts
|
||||
|
Loading…
Reference in New Issue
Block a user