-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.07 KB
/
gradle-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Gradle Build
on:
pull_request:
push:
branches:
- 'main'
workflow_dispatch:
concurrency:
group: '${{ github.workflow }}-${{ github.ref }}'
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
gradle-build:
name: Gradle Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
dependency-graph: generate-and-upload
dependency-graph-exclude-projects: ':(gradm|initialization|project)'
- run: ./gradlew build --no-daemon --stacktrace
gradle-submit-dependency-graph:
name: Gradle Submit Dependency Graph
uses: OmicoDev/gradle-project-initializer-template/.github/workflows/gradle-submit-dependency-graph.yml@main
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs: gradle-build
permissions:
contents: write