Skip to content

Commit 6238382

Browse files
authored
Merge pull request #81 from jakzal/gradle-update
Update gradle (7.5.1 -> 7.6) and slim the build matrix
2 parents 918f903 + 4834df4 commit 6238382

File tree

5 files changed

+16
-18
lines changed

5 files changed

+16
-18
lines changed

.github/workflows/build.yml

+1-11
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,13 @@ jobs:
1919
include:
2020
- gradle-version: '6.5.1'
2121
kotlin-version: '1.3.72'
22-
- gradle-version: '6.6.1'
23-
kotlin-version: '1.3.72'
24-
- gradle-version: '6.7.1'
25-
kotlin-version: '1.3.72'
2622
- gradle-version: '6.8.3'
2723
kotlin-version: '1.4.32'
28-
- gradle-version: '6.9.1'
29-
kotlin-version: '1.4.32'
30-
- gradle-version: '7.0.2'
31-
kotlin-version: '1.4.32'
3224
- gradle-version: '7.1.1'
3325
kotlin-version: '1.4.32'
3426
- gradle-version: '7.2'
3527
kotlin-version: '1.5.30'
36-
- gradle-version: '7.3.3'
37-
kotlin-version: '1.7.20'
38-
- gradle-version: '7.4.2'
28+
- gradle-version: '7.5.1'
3929
kotlin-version: '1.7.20'
4030
runs-on: ubuntu-latest
4131
steps:

gradle/wrapper/gradle-wrapper.jar

935 Bytes
Binary file not shown.
+1-1
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-7.5.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

+6
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,12 @@ set -- \
205205
org.gradle.wrapper.GradleWrapperMain \
206206
"$@"
207207

208+
# Stop when "xargs" is not available.
209+
if ! command -v xargs >/dev/null 2>&1
210+
then
211+
die "xargs is not available"
212+
fi
213+
208214
# Use "xargs" to parse quoted args.
209215
#
210216
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.

gradlew.bat

+8-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@rem limitations under the License.
1515
@rem
1616

17-
@if "%DEBUG%" == "" @echo off
17+
@if "%DEBUG%"=="" @echo off
1818
@rem ##########################################################################
1919
@rem
2020
@rem Gradle startup script for Windows
@@ -25,7 +25,7 @@
2525
if "%OS%"=="Windows_NT" setlocal
2626

2727
set DIRNAME=%~dp0
28-
if "%DIRNAME%" == "" set DIRNAME=.
28+
if "%DIRNAME%"=="" set DIRNAME=.
2929
set APP_BASE_NAME=%~n0
3030
set APP_HOME=%DIRNAME%
3131

@@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
4040

4141
set JAVA_EXE=java.exe
4242
%JAVA_EXE% -version >NUL 2>&1
43-
if "%ERRORLEVEL%" == "0" goto execute
43+
if %ERRORLEVEL% equ 0 goto execute
4444

4545
echo.
4646
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -75,13 +75,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
7575

7676
:end
7777
@rem End local scope for the variables with windows NT shell
78-
if "%ERRORLEVEL%"=="0" goto mainEnd
78+
if %ERRORLEVEL% equ 0 goto mainEnd
7979

8080
:fail
8181
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
8282
rem the _cmd.exe /c_ return code!
83-
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84-
exit /b 1
83+
set EXIT_CODE=%ERRORLEVEL%
84+
if %EXIT_CODE% equ 0 set EXIT_CODE=1
85+
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
86+
exit /b %EXIT_CODE%
8587

8688
:mainEnd
8789
if "%OS%"=="Windows_NT" endlocal

0 commit comments

Comments
 (0)