Skip to content

gradlew

gradlew #8

name: Gradle Compatibility Check
on: [push]
jobs:
gradle-compatibility-builds:
name: Build with Gradle ${{ matrix.gradle-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- agp-version: "6.1.1"
gradle-version: "6.8"
- agp-version: "7.4.0"
gradle-version: "7.2"
- agp-version: "8.3.1"
gradle-version: "8.4"
steps:
- uses: actions/checkout@v4
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
- name: Install Android SDK
uses: android-actions/setup-android@v3
- name: Verify gradle scripts are valid gradle scripts
uses: gradle/actions/wrapper-validation@v3
- name: Set up Gradle Version ${{ matrix.gradle-version }}
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: ${{ matrix.gradle-version }}
- name: Update Gradle Wrapper
run: |
sed -i "s/gradle-.*-all.zip/gradle-${{ matrix.gradle-version }}-all.zip/g" gradle/wrapper/gradle-wrapper.properties
- name: Build and Test SDK with Gradle Version ${{ matrix.gradle-version }}
run: ./gradlew build -PAGP_VERSION=${{ matrix.agp-version }}
env:
IS_DEVELOPMENT: "true"