Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build-docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
ref: ${{ inputs.ref != '' && inputs.ref || github.ref }}
fetch-depth: 0

- name: Set up JDK 21
- name: Set up JDK 25
uses: actions/setup-java@v4
with:
java-version: '21'
java-version: '25'
distribution: 'temurin'

- name: Build with Gradle
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-mr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up JDK 21
- name: Set up JDK 25
uses: actions/setup-java@v2
with:
java-version: '21'
java-version: '25'
distribution: 'temurin'

- name: Build with Gradle
Expand All @@ -44,4 +44,4 @@ jobs:
path: |
./**/test-results/**/*.xml
./**/reports
./**/libs
./**/libs
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Требования к инфраструктуре

* JDK: 21 (Temurin)
* JDK: 25 (Temurin)
* PostgreSQL 15.2

## Требования к рабочему окружению
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/resources/templates/components/combo-box.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="dropdown combo-box-div"
th:attr="${'@itemSelected'}=${itemSelected}"
th:attr="${'x-on:itemselected'}=${#strings.isEmpty(itemSelected) ? null : itemSelected}"
th:fragment="comboBox(name, fetchUrl, value, valueName, placeholderView, itemSelected, required, selectOnly)"
x-data="{showComboBox: false, searchKey: $el.querySelector('input[type=text]').value}">

Expand Down Expand Up @@ -104,4 +104,4 @@
</button>
</li>
</ul>
</div>
</div>
32 changes: 19 additions & 13 deletions app/src/testFixtures/kotlin/pro/qyoga/tests/infra/db/TestMinio.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package pro.qyoga.tests.infra.db
import io.minio.ListObjectsArgs
import io.minio.MinioClient
import io.minio.RemoveObjectArgs
import io.minio.errors.MinioException
import org.slf4j.LoggerFactory
import java.net.ConnectException

Expand Down Expand Up @@ -30,20 +31,26 @@ val minioUrl: String by lazy {

MINIO_URL
} catch (e: ConnectException) {
log.info("minio container not found: ${e.message}")
log.info("http://" + minioContainer.host + ":" + minioContainer.firstMappedPort)
fallbackToTestcontainersMinio(e)
} catch (e: MinioException) {
fallbackToTestcontainersMinio(e)
}
}

log.info("Cleaning testcontainers minio")
dropBuckets(
MinioClient.builder()
.endpoint(minioContainer.s3URL)
.credentials(minioContainer.userName, minioContainer.password)
.build()
)
log.info("Minio cleaned")
private fun fallbackToTestcontainersMinio(e: Exception): String {
log.info("minio container not found: ${e.message}")
log.info("http://" + minioContainer.host + ":" + minioContainer.firstMappedPort)

"http://" + minioContainer.host + ":" + minioContainer.firstMappedPort
}
log.info("Cleaning testcontainers minio")
dropBuckets(
MinioClient.builder()
.endpoint(minioContainer.s3URL)
.credentials(minioContainer.userName, minioContainer.password)
.build()
)
log.info("Minio cleaned")

return "http://" + minioContainer.host + ":" + minioContainer.firstMappedPort
}

val testMinioClient: MinioClient by lazy {
Expand All @@ -63,4 +70,3 @@ fun dropBuckets(client: MinioClient) {
}
}
}

6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ subprojects {

configure<JavaPluginExtension> {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
languageVersion.set(JavaLanguageVersion.of(25))
}
}

Expand All @@ -36,8 +36,8 @@ subprojects {

tasks.withType<KotlinCompile> {
compilerOptions {
freeCompilerArgs = listOf("-Xjsr305=strict", "-Xwhen-guards")
jvmTarget.set(JvmTarget.JVM_21)
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget.set(JvmTarget.JVM_25)
jvmDefault.set(JvmDefaultMode.NO_COMPATIBILITY)
allWarningsAsErrors = true
}
Expand Down
4 changes: 2 additions & 2 deletions deploy/qyoga/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM eclipse-temurin:21-alpine
FROM eclipse-temurin:25-alpine
EXPOSE 8080

WORKDIR /app
ADD /app/build/libs/qyoga.jar /app/qyoga.jar
ENTRYPOINT ["java", "-jar", "qyoga.jar"]
ENTRYPOINT ["java", "-jar", "qyoga.jar"]
4 changes: 2 additions & 2 deletions deploy/qyoga/Dockerfile-local-dev
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM eclipse-temurin:21-alpine
FROM eclipse-temurin:25-alpine
EXPOSE 8080

WORKDIR /app

ENTRYPOINT ["./gradlew", "bootRun", "--args='--spring.profiles.active=local-dev,demo,local-front-dev'", "--no-daemon"]
ENTRYPOINT ["./gradlew", "bootRun", "--args='--spring.profiles.active=local-dev,demo,local-front-dev'", "--no-daemon"]
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
10 changes: 5 additions & 5 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ dependencyResolutionManagement {
versionCatalogs {
create("libs") {
// plugin versions
val kotlinVersion = version("kotlin", "2.3.10")
val springBootVersion = version("springBoot", "4.0.3")
val kotlinVersion = version("kotlin", "2.3.21")
val springBootVersion = version("springBoot", "4.0.6")
val springDependencyManagementVersion = version("springDependencyManagement", "1.1.7")
val koverVersion = version("kover", "0.9.2")
val gitPropertiesVersion = version("gitProperties", "2.5.3")
val detektVersion = version("dekekt", "2.0.0-alpha.1")
val koverVersion = version("kover", "0.9.8")
val gitPropertiesVersion = version("gitProperties", "2.5.7")
val detektVersion = version("dekekt", "2.0.0-alpha.2")

// lib versions
val poiVersion = version("poi", "5.4.1")
Expand Down
Loading