File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 : [ "main" ]
13+ pull_request :
14+
15+ jobs :
16+ build :
17+
18+ runs-on : ubuntu-latest
19+ permissions :
20+ contents : read
21+
22+ steps :
23+ - uses : actions/checkout@v4
24+ - name : Set up JDK 21
25+ uses : actions/setup-java@v4
26+ with :
27+ java-version : ' 21'
28+ distribution : ' temurin'
29+
30+ - name : Setup Gradle
31+ uses : gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
32+
33+ - name : Make gradlew executable
34+ run : chmod +x ./gradlew
35+
36+ - name : Build with Gradle Wrapper
37+ run : ./gradlew build
38+
39+ dependency-submission :
40+
41+ runs-on : ubuntu-latest
42+ permissions :
43+ contents : write
44+
45+ steps :
46+ - uses : actions/checkout@v4
47+ - name : Set up JDK 21
48+ uses : actions/setup-java@v4
49+ with :
50+ java-version : ' 21'
51+ distribution : ' temurin'
52+
53+ # Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
54+ # See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
55+ - name : Generate and submit dependency graph
56+ uses : gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
You can’t perform that action at this time.
0 commit comments