mirror of
https://github.com/Freezy-Studios/BlazeSMP.git
synced 2025-04-21 21:14:04 +02:00
chore(workflow): Gradle Wrapper-Generierung im GitHub Actions Workflow hinzugefügt - Automatische Erstellung des Gradle Wrappers, falls nicht im Repository vorhanden - Setzt die Ausführungsrechte für gradlew, um den Build zu ermöglichen
This commit is contained in:
parent
975c942699
commit
7103300e54
1 changed files with 14 additions and 16 deletions
30
.github/workflows/gradle.yml
vendored
30
.github/workflows/gradle.yml
vendored
|
@ -15,13 +15,13 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
|
@ -32,31 +32,29 @@ jobs:
|
|||
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
|
||||
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
|
||||
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582
|
||||
|
||||
# Schritt 1: Erzeuge den Gradle Wrapper, falls dieser nicht vorhanden ist.
|
||||
- name: Generate Gradle Wrapper
|
||||
run: gradle wrapper --gradle-version 8.9
|
||||
|
||||
# Schritt 2: Stelle sicher, dass das Wrapper-Skript ausführbar ist.
|
||||
- name: Make gradlew executable
|
||||
run: chmod +x gradlew
|
||||
|
||||
# Schritt 3: Führe den Build mit dem Gradle Wrapper durch.
|
||||
- name: Build with Gradle Wrapper
|
||||
run: ./gradlew build
|
||||
|
||||
# NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
|
||||
# If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.
|
||||
#
|
||||
# - name: Setup Gradle
|
||||
# uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
|
||||
# with:
|
||||
# gradle-version: '8.9'
|
||||
#
|
||||
# - name: Build with Gradle 8.9
|
||||
# run: gradle build
|
||||
|
||||
dependency-submission:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up JDK 17
|
||||
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
|
@ -65,4 +63,4 @@ jobs:
|
|||
# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
|
||||
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
|
||||
- name: Generate and submit dependency graph
|
||||
uses: gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
|
||||
uses: gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue