Skip to content

Build Gradle project #499

Build Gradle project

Build Gradle project #499

Workflow file for this run

name: "Build Gradle project"
on: [ push, pull_request, workflow_dispatch ]
permissions:
contents: write
jobs:
build:
name: Test JVM/Gradle (${{ matrix.java-version }}, ${{ matrix.gradle-version }})
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ "8", "11", "17" ]
gradle-version: [ "6.9.4", "7.0.2", "7.6.1", "8.0.2", "8.4" ]
steps:
- name: Check out project
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'liberica'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
dependency-graph: generate-and-submit
- name: Build with Gradle
run: "./gradlew clean build -PtestJavaRuntimeVersion=${{ matrix.java-version }} -PtestGradleVersion=${{ matrix.gradle-version }}"
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}