Update to Gradle 8.11 #4073
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Java project with Gradle | |
# 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 | |
- pull_request | |
jobs: | |
build: | |
name: Build plugin | |
runs-on: ubuntu-latest | |
env: | |
ORG_GRADLE_PROJECT_freefairBuildCachePassword: ${{ secrets.BUILD_CACHE_PASSWORD }} | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ 8, 11, 17, 21 ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v3 | |
- run: ./gradlew -V assemble -s | |
- run: ./gradlew -V uploadGithubDependenciesSnapshot -s | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: ./gradlew -V check -s | |
- name: Upload Coverage Reports | |
run: | | |
./gradlew jacocoTestReport | |
bash <(curl -s https://codecov.io/bash) | |
build-examples: | |
name: Build example projects | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ 11, 17, 21 ] | |
defaults: | |
run: | |
working-directory: examples | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v3 | |
- run: ./gradlew -V assemble -s | |
- run: ./gradlew -V uploadGithubDependenciesSnapshot -s | |
- run: ./gradlew -V check -s |