|
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 |
9 | | - |
10 | | -on: |
11 | | - push: |
12 | | - branches: [ "master" ] |
13 | | - pull_request: |
14 | | - branches: [ "master" ] |
15 | | - |
16 | | -jobs: |
17 | | - build: |
18 | | - |
19 | | - runs-on: ubuntu-latest |
20 | | - permissions: |
21 | | - contents: read |
22 | | - |
23 | | - steps: |
24 | | - - uses: actions/checkout@v5 |
25 | | - - name: Set up JDK 25 |
26 | | - uses: actions/setup-java@v5 |
27 | | - with: |
28 | | - java-version: '25' |
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@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0 |
35 | | - |
36 | | - - name: Build with Gradle Wrapper |
37 | | - run: ./gradlew build |
38 | | - |
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@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0 |
44 | | - # with: |
45 | | - # gradle-version: '8.9' |
46 | | - # |
47 | | - # - name: Build with Gradle 8.9 |
48 | | - # run: gradle build |
49 | | - |
50 | | - dependency-submission: |
51 | | - |
52 | | - runs-on: ubuntu-latest |
53 | | - permissions: |
54 | | - contents: write |
55 | | - |
56 | | - steps: |
57 | | - - uses: actions/checkout@v5 |
58 | | - - name: Set up JDK 25 |
59 | | - uses: actions/setup-java@v5 |
60 | | - with: |
61 | | - java-version: '25' |
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@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0 |
| 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 |
| 9 | + |
| 10 | +on: |
| 11 | + push: |
| 12 | + branches: [ "master" ] |
| 13 | + pull_request: |
| 14 | + branches: [ "master" ] |
| 15 | + |
| 16 | +jobs: |
| 17 | + build: |
| 18 | + |
| 19 | + runs-on: ubuntu-latest |
| 20 | + permissions: |
| 21 | + contents: read |
| 22 | + |
| 23 | + steps: |
| 24 | + - uses: actions/checkout@v5 |
| 25 | + - name: Set up JDK 25 |
| 26 | + uses: actions/setup-java@v5 |
| 27 | + with: |
| 28 | + java-version: '25' |
| 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@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0 |
| 35 | + |
| 36 | + - name: Build with Gradle Wrapper |
| 37 | + run: ./gradlew build |
| 38 | + |
| 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@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0 |
| 44 | + # with: |
| 45 | + # gradle-version: '8.9' |
| 46 | + # |
| 47 | + # - name: Build with Gradle 8.9 |
| 48 | + # run: gradle build |
| 49 | + |
| 50 | + dependency-submission: |
| 51 | + |
| 52 | + runs-on: ubuntu-latest |
| 53 | + permissions: |
| 54 | + contents: write |
| 55 | + |
| 56 | + steps: |
| 57 | + - uses: actions/checkout@v5 |
| 58 | + - name: Set up JDK 25 |
| 59 | + uses: actions/setup-java@v5 |
| 60 | + with: |
| 61 | + java-version: '25' |
| 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@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0 |
0 commit comments