From 855590a86785a5b91af6107b7d9c89d2206a5b7e Mon Sep 17 00:00:00 2001 From: Denis Savosin Date: Thu, 3 Oct 2024 10:41:53 +0700 Subject: [PATCH] add readme, fixate dependency versions --- build.gradle.kts | 30 +++++++++++++++--------------- readme.md | 22 ++++++++++++++++++++++ 2 files changed, 37 insertions(+), 15 deletions(-) create mode 100644 readme.md diff --git a/build.gradle.kts b/build.gradle.kts index 366bb12..3bcc479 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -22,27 +22,27 @@ repositories { } dependencies { - api("org.springframework.boot:spring-boot-starter-data-jdbc") + api("org.springframework.boot:spring-boot-starter-data-jdbc:3.2.4") implementation("com.fasterxml.jackson.module:jackson-module-kotlin") - implementation("org.flywaydb:flyway-core") - implementation("org.jetbrains.kotlin:kotlin-reflect") - implementation("org.jetbrains.kotlinx:kotlinx-serialization-json") - implementation("org.postgresql:postgresql") - implementation("org.springframework.boot:spring-boot-starter-mustache") - implementation("org.springframework.boot:spring-boot-starter-validation") - implementation("org.springframework.boot:spring-boot-starter-web") - implementation("org.springframework.kafka:spring-kafka") + implementation("org.flywaydb:flyway-core:9.22.3") + implementation("org.jetbrains.kotlin:kotlin-reflect:2.0.20") + implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3") + implementation("org.postgresql:postgresql:42.6.2") + implementation("org.springframework.boot:spring-boot-starter-mustache:3.2.4") + implementation("org.springframework.boot:spring-boot-starter-validation:3.2.4") + implementation("org.springframework.boot:spring-boot-starter-web:3.2.4") + implementation("org.springframework.kafka:spring-kafka:3.1.3") developmentOnly("org.springframework.boot:spring-boot-devtools") - testImplementation("org.jetbrains.kotlin:kotlin-test-junit5") + testImplementation("org.jetbrains.kotlin:kotlin-test-junit5:2.0.20") testImplementation("org.mockito.kotlin:mockito-kotlin:5.4.0") - testImplementation("org.springframework.boot:spring-boot-starter-test") - testImplementation("org.springframework.kafka:spring-kafka-test") - testImplementation("org.testcontainers:junit-jupiter") - testImplementation("org.testcontainers:testcontainers") - testImplementation("org.testcontainers:postgresql") + testImplementation("org.springframework.boot:spring-boot-starter-test:3.2.4") + testImplementation("org.springframework.kafka:spring-kafka-test:3.1.3") + testImplementation("org.testcontainers:junit-jupiter:1.19.7") + testImplementation("org.testcontainers:testcontainers:1.19.7") + testImplementation("org.testcontainers:postgresql:1.19.7") } kotlin { diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..94aa825 --- /dev/null +++ b/readme.md @@ -0,0 +1,22 @@ +## Spring boot application + +Demo приложение для изучения языка `kotlin` и фреймворка `spring boot`. + +## Требования + +* `jdk` версии `17` +* `postgresql` версии `14` +* `kafka` без авторизации +* `docker` + `compose` (для тестов) + +## Доступные команды + +* Запуск тестов + ```shell + ./gradlew test + ``` + +* запуск приложения + ```shell + ./gradlew bootRun + ``` \ No newline at end of file