name: 'Common project setup' description: 'Setup the base project' runs: using: "composite" steps: - name: Set up JDK 17 uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 #v4.7.0 with: java-version: '17' distribution: 'temurin' - name: Grant execute permission for gradlew shell: bash run: chmod +x gradlew - name: Cache Gradle Wrapper uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 #v4.2.3 with: path: | ~/.gradle/wrapper !~/.gradle/wrapper/dists/**/gradle*.zip key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle-wrapper.properties') }} restore-keys: | ${{ runner.os }}-gradle-wrapper- - name: Cache Gradle Dependencies uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 #v4.2.3 with: path: | ~/.gradle/caches key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'buildSrc/**/*.kt') }} restore-keys: | ${{ runner.os }}-gradle-caches- - name: Cache Android Global Build-Cache uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 #v4.2.3 with: path: | ~/.android/build-cache key: ${{ runner.os }}-android-build-cache-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} restore-keys: | ${{ runner.os }}-android-build-cache-