Skip to content

Commit 7d4911d

Browse files
authored
Add Gradle GitHub Actions
1 parent 4973ab9 commit 7d4911d

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
2+
3+
name: Gradle
4+
5+
on:
6+
push:
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up JDK 21
19+
uses: actions/setup-java@v4
20+
with:
21+
java-version: '21'
22+
distribution: 'temurin'
23+
24+
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
25+
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
26+
- name: Setup Gradle
27+
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
28+
29+
- name: Build with Gradle Wrapper
30+
run: ./gradlew build

0 commit comments

Comments
 (0)