Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HSPC-177: updated gradle version to 8.5 and java to 21 #138

Merged
merged 10 commits into from
Nov 6, 2024
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
uses: ./.github/workflows/actions/build
with:
path: epicbox-hyperskill/gradle
image_name_tag: hyperskill-gradle:7.3-jdk11
image_name_tag: hyperskill-gradle:8.5-jdk17
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_hyperskill_gradle_spring_image:
Expand All @@ -127,7 +127,7 @@ jobs:
uses: ./.github/workflows/actions/build
with:
path: epicbox-hyperskill/gradle-spring
image_name_tag: hyperskill-gradle-spring:7.3-jdk17
image_name_tag: hyperskill-gradle-spring:8.5-jdk17
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_hyperskill_java_image:
Expand Down
2 changes: 1 addition & 1 deletion epicbox-hyperskill/gradle-spring/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gradle:7.3-jdk17
FROM gradle:8.5-jdk17

COPY --chown=gradle checker/ /checker/

Expand Down
5 changes: 3 additions & 2 deletions epicbox-hyperskill/gradle-spring/checker/sandbox/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ subprojects {

repositories {
mavenCentral()
maven { url "https://packages.jetbrains.team/maven/p/hyperskill-hs-test/maven" }
maven { url "https://jitpack.io" }
}

dependencies {
testImplementation 'com.github.hyperskill:hs-test:v10.0.3'
testImplementation 'com.github.hyperskill:hs-test:12.0.2'
}

sourceSets {
Expand Down Expand Up @@ -43,7 +44,7 @@ subprojects {

project(':util') {
dependencies {
implementation 'com.github.hyperskill:hs-test:v10.0.3'
implementation 'com.github.hyperskill:hs-test:12.0.2'
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ buildscript {
apply plugin: 'hyperskill'

def javaVersion = Integer.parseInt(JavaVersion.current().getMajorVersion())
def bootVersion = (javaVersion == 17) ? hs.spring.bootVersion : "2.3.1.RELEASE"
def depsVersion = (javaVersion == 17) ? hs.spring.dependencyManagementVersion : "1.0.9.RELEASE"
def bootVersion = (javaVersion == 17) ? hs.spring.bootVersion : "3.2.0"
def depsVersion = (javaVersion == 17) ? hs.spring.dependencyManagementVersion : "1.1.3"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
buildscript {
repositories {
maven { url "https://packages.jetbrains.team/maven/p/hyperskill-hs-test/maven" }
maven { url 'https://jitpack.io' }
}

dependencies {
classpath 'com.github.hyperskill:hs-gradle-plugin:v1.1'
classpath 'com.github.hyperskill:hs-gradle-plugin:1.6'
}
}

Expand Down
2 changes: 1 addition & 1 deletion epicbox-hyperskill/gradle/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gradle:7.3-jdk11
FROM gradle:8.5.0-jdk17

COPY --chown=gradle checker/ /checker/

Expand Down
9 changes: 5 additions & 4 deletions epicbox-hyperskill/gradle/checker/template/build.gradle
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
plugins {
id 'application'
id 'org.jetbrains.kotlin.jvm' version '1.5.30'
id 'org.jetbrains.kotlin.jvm' version '2.0.0'
id 'scala'
}

sourceCompatibility = 11
sourceCompatibility = 17

repositories {
mavenCentral()
maven { url "https://packages.jetbrains.team/maven/p/hyperskill-hs-test/maven" }
maven { url "https://jitpack.io" }
}

dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation 'org.scala-lang:scala-library:2.13.6'
testImplementation 'com.github.hyperskill:hs-test:v10.0.3'
implementation 'org.scala-lang:scala-library:2.13.12'
testImplementation 'com.github.hyperskill:hs-test:12.0.2'
}

sourceSets {
Expand Down
4 changes: 2 additions & 2 deletions epicbox-hyperskill/java/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openjdk:17-slim
FROM openjdk:17-jdk-slim

RUN apt-get update && \
apt-get install --yes python3 unzip curl && \
Expand All @@ -11,7 +11,7 @@ RUN mkdir /checker && \
rm /checker/kotlin.zip

RUN curl -L -o /checker/hs-test.jar \
https://github.com/hyperskill/hs-test/releases/download/v10.0.3/hs-test-10.0.3.jar
https://github.com/hyperskill/hs-test/releases/download/v12.0.2/hs-test-12.0.2.jar

ENV PATH="/checker/kotlinc/bin:$PATH"

Expand Down
18 changes: 12 additions & 6 deletions epicbox-hyperstyle/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM stepik/hyperstyle-base:py3.8.11-java11.0.11-node14.17.3-go1.18.5
FROM hyperskill.azurecr.io/hyperstyle-base:py3.10.14-java11.0.11-node14.17.3-go1.18.5

ENV ESLINT_VERSION 7.5.0

Expand All @@ -18,7 +18,7 @@ ENV GOLANG_LINT_DIRECTORY ${LINTERS_DIRECTORY}/golangci-lint

RUN apt-get update && apt-get install -y build-essential libssl-dev libffi-dev python3-dev git

RUN git clone --branch develop https://github.com/hyperskill/hyperstyle.git /review
RUN git clone --branch main https://github.com/hyperskill/hyperstyle.git /review

RUN mkdir -p ${CHECKSTYLE_DIRECTORY} && \
mkdir -p ${DETEKT_DIRECTORY} && \
Expand Down Expand Up @@ -60,10 +60,16 @@ RUN go mod download && \
rm main.go && \
chmod ugo-w go.mod go.sum

RUN pip install -r ./review/requirements-build.txt --verbose
RUN pip install -r ./review/requirements.txt --verbose
RUN pip install -r ./review/requirements-test.txt --verbose
ARG POETRY_VERSION=1.8.3
RUN pip install poetry==${POETRY_VERSION} \
&& poetry config virtualenvs.create false \
&& python -m venv /hyperstyle

RUN pip install ./review --use-feature=in-tree-build
WORKDIR /review

RUN . /hyperstyle/bin/activate \
&& poetry install --no-interaction --no-ansi --no-cache --no-root

WORKDIR /

CMD ["/bin/bash"]
Loading