Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 18 additions & 11 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI with Gradle

on:
push:
branches: [ master ]
pull_request:
branches: [ 'master', 'main', '4.0', 'release/**' ]
branches:
- master
- main
- '4.0'
- 'release/**'
types: [ opened, synchronize, reopened ]


jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
# 1. Checkout code
- name: Checkout
uses: actions/checkout@v3

# 2. Set up Temurin JDK 21 and enable Gradle cache
- name: Set up JDK 21
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
distribution: temurin
java-version: 21
cache: gradle
- name: Grant execute permission for gradlew

# 3. Make Gradle wrapper executable (Linux runners)
- name: Grant execute permission to gradlew
run: chmod +x gradlew

# 4. Build
- name: Build with Gradle
run: ./gradlew build