File tree Expand file tree Collapse file tree 6 files changed +19
-18
lines changed
Expand file tree Collapse file tree 6 files changed +19
-18
lines changed Original file line number Diff line number Diff line change 11name : Barcode API CI
22
33on :
4+ workflow_dispatch :
45 push :
56 branches : [ master ]
67 pull_request :
Original file line number Diff line number Diff line change 1- buildscript {
2- extra[" gradleVersion" ] = " 8.6"
1+ tasks {
2+ wrapper {
3+ gradleVersion = " 8.6"
4+ distributionType = Wrapper .DistributionType .BIN
5+ }
36}
47
58val gradleVersion: String by extra
@@ -38,10 +41,7 @@ tasks {
3841 useJUnitPlatform()
3942 }
4043
41- java {
42- sourceCompatibility = JavaVersion .VERSION_21
43- targetCompatibility = JavaVersion .VERSION_21
44- }
44+ java.toolchain.languageVersion.set(JavaLanguageVersion .of(JavaVersion .VERSION_21 .majorVersion.toInt()))
4545
4646 bootJar {
4747 archiveFileName.set(" barcode-api.jar" )
Original file line number Diff line number Diff line change 1- ./gradlew clean bootJar & docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag bradbarnhill/barcode-api:latest .
1+ ./gradlew clean bootJar bootWar & docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag bradbarnhill/barcode-api:latest .
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =wrapper/dists
3- distributionUrl =https\://services.gradle.org/distributions/gradle-8.4 -bin.zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.6 -bin.zip
44networkTimeout =10000
55validateDistributionUrl =true
66zipStoreBase =GRADLE_USER_HOME
Original file line number Diff line number Diff line change @@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
4343%JAVA_EXE% -version > NUL 2 >& 1
4444if %ERRORLEVEL% equ 0 goto execute
4545
46- echo .
47- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48- echo .
49- echo Please set the JAVA_HOME variable in your environment to match the
50- echo location of your Java installation.
46+ echo . 1 >& 2
47+ echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1 >& 2
48+ echo . 1 >& 2
49+ echo Please set the JAVA_HOME variable in your environment to match the 1 >& 2
50+ echo location of your Java installation. 1 >& 2
5151
5252goto fail
5353
@@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5757
5858if exist " %JAVA_EXE% " goto execute
5959
60- echo .
61- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62- echo .
63- echo Please set the JAVA_HOME variable in your environment to match the
64- echo location of your Java installation.
60+ echo . 1 >& 2
61+ echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1 >& 2
62+ echo . 1 >& 2
63+ echo Please set the JAVA_HOME variable in your environment to match the 1 >& 2
64+ echo location of your Java installation. 1 >& 2
6565
6666goto fail
6767
You can’t perform that action at this time.
0 commit comments