-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1008 Bytes
/
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:
workflow_dispatch:
concurrency:
group: '${{ github.workflow }}-${{ github.ref }}'
cancel-in-progress: false
jobs:
gradle-wrapper-validation:
name: Gradle Wrapper validation
uses: OmicoDev/gradle-project-initializer-template/.github/workflows/gradle-wrapper-validation.yml@main
gradle-build:
name: Gradle Build
runs-on: ubuntu-latest
permissions:
contents: write
needs:
- gradle-wrapper-validation
env:
DEPENDENCY_GRAPH_EXCLUDE_PROJECTS: ':(gradm|initialization|project)'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-home-cache-cleanup: true
dependency-graph: generate-and-submit
- run: ./gradlew build --no-daemon --stacktrace