Skip to content

Commit 64e0387

Browse files
authored
Upgrade Gradle version and cache based on Java version (#612)
* Upgrade Gradle version and cache based on Java version * Update gradle wrapper executable
1 parent 7eb5d85 commit 64e0387

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
uses: actions/cache@v1
2828
with:
2929
path: ~/.gradle/caches
30-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
30+
key: ${{ runner.os }}-${{ matrix.java }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
3131
restore-keys: |
32-
${{ runner.os }}-gradle-
32+
${{ runner.os }}-${{ matrix.java }}-gradle-
3333
- name: Build library with Gradle
3434
run: ./gradlew clean build
3535
- name: Build examples with Gradle

.github/workflows/pr-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
uses: actions/cache@v1
2828
with:
2929
path: ~/.gradle/caches
30-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
30+
key: ${{ runner.os }}-${{ matrix.java }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
3131
restore-keys: |
32-
${{ runner.os }}-gradle-
32+
${{ runner.os }}-${{ matrix.java }}-gradle-
3333
- name: Build library with Gradle
3434
run: ./gradlew clean build
3535
- name: Build examples with Gradle

gradle/wrapper/gradle-wrapper.jar

-7 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ if "%DIRNAME%" == "" set DIRNAME=.
2929
set APP_BASE_NAME=%~n0
3030
set APP_HOME=%DIRNAME%
3131

32+
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
33+
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34+
3235
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
3336
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
3437

0 commit comments

Comments
 (0)