Skip to content

Commit 9f03c55

Browse files
committed
Revert "feat: upgrade to Java 24 (#157)"
This reverts commit ce4b29b.
1 parent ce4b29b commit 9f03c55

File tree

9 files changed

+35
-35
lines changed

9 files changed

+35
-35
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ on:
77

88
jobs:
99
publish:
10-
runs-on: arc-runners-small
10+
runs-on: [ self-hosted, small ]
1111
steps:
1212
- uses: actions/checkout@v4
1313

1414
- name: Set up Java
1515
uses: actions/setup-java@v4
1616
with:
17-
java-version: '24'
17+
java-version: '17'
1818
distribution: 'corretto'
1919

2020
- name: Setup Gradle

.github/workflows/main.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,23 @@ on: [ push ]
44
jobs:
55
tests:
66
name: Run tests for Java ${{ matrix.version }}
7-
runs-on: arc-runners-small
7+
runs-on: [ self-hosted, small ]
88
strategy:
99
fail-fast: false
1010
matrix:
1111
version:
12-
- 24
12+
- 17
13+
- 18
14+
- 19
15+
- 20
16+
- 21
1317
steps:
1418
- uses: actions/checkout@v4
1519

1620
- name: Set up Java ${{ matrix.version }}
1721
uses: actions/setup-java@v4
1822
with:
19-
distribution: 'corretto'
23+
distribution: 'zulu'
2024
java-version: '${{ matrix.version }}'
2125
cache: 'gradle'
2226

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM gradle:8.14-jdk24
1+
FROM gradle:8.5-jdk17
22

33
COPY --chown=gradle . hs-test
44
WORKDIR /home/gradle/hs-test

build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ plugins {
77
}
88

99
group 'org.hyperskill'
10-
version '13.0.0'
10+
version '12.0.3'
1111

1212
java {
13-
sourceCompatibility = JavaVersion.VERSION_24
14-
targetCompatibility = JavaVersion.VERSION_24
13+
sourceCompatibility = JavaVersion.VERSION_17
14+
targetCompatibility = JavaVersion.VERSION_17
1515
}
1616

1717
repositories {
@@ -28,8 +28,8 @@ dependencies {
2828
api 'org.apache.httpcomponents:httpclient:4.5.14'
2929
api 'com.google.code.gson:gson:2.10.1'
3030

31-
compileOnly 'org.projectlombok:lombok:1.18.38'
32-
annotationProcessor 'org.projectlombok:lombok:1.18.38'
31+
compileOnly 'org.projectlombok:lombok:1.18.30'
32+
annotationProcessor 'org.projectlombok:lombok:1.18.30'
3333
}
3434

3535
compileJava.options.encoding = 'UTF-8'
@@ -46,7 +46,7 @@ tasks.withType(JavaCompile) {
4646
// }
4747

4848
wrapper {
49-
gradleVersion = '8.14'
49+
gradleVersion = '8.5'
5050
}
5151

5252
task resolveDependencies {

gradle/wrapper/gradle-wrapper.jar

-302 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717
#
18-
# SPDX-License-Identifier: Apache-2.0
19-
#
2018

2119
##############################################################################
2220
#
@@ -57,7 +55,7 @@
5755
# Darwin, MinGW, and NonStop.
5856
#
5957
# (3) This script is generated from the Groovy template
60-
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
6159
# within the Gradle project.
6260
#
6361
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -86,7 +84,7 @@ done
8684
# shellcheck disable=SC2034
8785
APP_BASE_NAME=${0##*/}
8886
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89-
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
87+
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
9088

9189
# Use the maximum available, or set MAX_FD != -1 to use that value.
9290
MAX_FD=maximum
@@ -114,7 +112,7 @@ case "$( uname )" in #(
114112
NONSTOP* ) nonstop=true ;;
115113
esac
116114

117-
CLASSPATH="\\\"\\\""
115+
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
118116

119117

120118
# Determine the Java command to use to start the JVM.
@@ -205,15 +203,15 @@ fi
205203
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
206204

207205
# Collect all arguments for the java command:
208-
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
206+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
209207
# and any embedded shellness will be escaped.
210208
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
211209
# treated as '${Hostname}' itself on the command line.
212210

213211
set -- \
214212
"-Dorg.gradle.appname=$APP_BASE_NAME" \
215213
-classpath "$CLASSPATH" \
216-
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
214+
org.gradle.wrapper.GradleWrapperMain \
217215
"$@"
218216

219217
# Stop when "xargs" is not available.

gradlew.bat

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
@rem See the License for the specific language governing permissions and
1414
@rem limitations under the License.
1515
@rem
16-
@rem SPDX-License-Identifier: Apache-2.0
17-
@rem
1816

1917
@if "%DEBUG%"=="" @echo off
2018
@rem ##########################################################################
@@ -45,11 +43,11 @@ set JAVA_EXE=java.exe
4543
%JAVA_EXE% -version >NUL 2>&1
4644
if %ERRORLEVEL% equ 0 goto execute
4745

48-
echo. 1>&2
49-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
50-
echo. 1>&2
51-
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
52-
echo location of your Java installation. 1>&2
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.
5351

5452
goto fail
5553

@@ -59,22 +57,22 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5957

6058
if exist "%JAVA_EXE%" goto execute
6159

62-
echo. 1>&2
63-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
64-
echo. 1>&2
65-
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
66-
echo location of your Java installation. 1>&2
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.
6765

6866
goto fail
6967

7068
:execute
7169
@rem Setup the command line
7270

73-
set CLASSPATH=
71+
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
7472

7573

7674
@rem Execute Gradle
77-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
75+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
7876

7977
:end
8078
@rem End local scope for the variables with windows NT shell

jitpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
jdk: openjdk24
1+
jdk: openjdk17

0 commit comments

Comments
 (0)