Skip to content

Commit 476125d

Browse files
committed
Reformat github workflow file
1 parent 1ee9484 commit 476125d

File tree

1 file changed

+19
-46
lines changed

1 file changed

+19
-46
lines changed

.github/workflows/gradle.yml

Lines changed: 19 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
# This workflow uses actions that are not certified by GitHub.
2-
# They are provided by a third-party and are governed by
3-
# separate terms of service, privacy policy, and support
4-
# documentation.
5-
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7-
8-
name: Java CI with Gradle
1+
name: Build and Test Gradle Project
92

103
on:
114
push:
@@ -15,53 +8,33 @@ on:
158

169
jobs:
1710
build:
18-
1911
runs-on: ubuntu-latest
2012
permissions:
2113
contents: read
22-
2314
steps:
24-
- uses: actions/checkout@v4
25-
- name: Set up JDK 17
26-
uses: actions/setup-java@v4
27-
with:
28-
java-version: '17'
29-
distribution: 'temurin'
30-
31-
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
32-
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
33-
- name: Setup Gradle
34-
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
15+
- uses: actions/checkout@v4
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: '17'
20+
distribution: 'temurin'
3521

36-
- name: Build with Gradle Wrapper
37-
run: ./gradlew build
22+
- name: Setup Gradle
23+
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
3824

39-
# NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
40-
# If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.
41-
#
42-
# - name: Setup Gradle
43-
# uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
44-
# with:
45-
# gradle-version: '8.9'
46-
#
47-
# - name: Build with Gradle 8.9
48-
# run: gradle build
25+
- name: Build with Gradle Wrapper
26+
run: ./gradlew build
4927

5028
dependency-submission:
51-
5229
runs-on: ubuntu-latest
5330
permissions:
5431
contents: write
55-
5632
steps:
57-
- uses: actions/checkout@v4
58-
- name: Set up JDK 17
59-
uses: actions/setup-java@v4
60-
with:
61-
java-version: '17'
62-
distribution: 'temurin'
63-
64-
# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
65-
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
66-
- name: Generate and submit dependency graph
67-
uses: gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
33+
- uses: actions/checkout@v4
34+
- name: Set up JDK 17
35+
uses: actions/setup-java@v4
36+
with:
37+
java-version: '17'
38+
distribution: 'temurin'
39+
- name: Generate and submit dependency graph
40+
uses: gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0

0 commit comments

Comments
 (0)