From d24ce278d293e3f55a5774445297cf2e83738255 Mon Sep 17 00:00:00 2001 From: hantsy Date: Wed, 16 Feb 2022 16:07:48 +0800 Subject: [PATCH 1/3] chore: bump to Spring boot 3 --- build.gradle.kts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index f40757c..0cc6be4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - id("org.springframework.boot") version "2.6.3" + id("org.springframework.boot") version "3.0.0-M1" id("io.spring.dependency-management") version "1.0.11.RELEASE" kotlin("jvm") version "1.6.10" kotlin("plugin.spring") version "1.6.10" @@ -15,6 +15,7 @@ java.sourceCompatibility = JavaVersion.VERSION_17 repositories { mavenCentral() + maven { url = uri("https://repo.spring.io/milestone") } } extra["testcontainersVersion"] = "1.16.2" From d85c51db9021f1e26d11436bfb8d183e5f37a97a Mon Sep 17 00:00:00 2001 From: hantsy Date: Wed, 16 Feb 2022 16:14:34 +0800 Subject: [PATCH 2/3] chore: update Readme.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 1284440..c010ede 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,20 @@ * [Spring Data R2DBC SQL](https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-r2dbc) * [PostgreSQL Driver SQL](https://mvnrepository.com/artifact/org.postgresql/postgresql) + + +## Features + +* Tech stack: Spring WebFlux+ Kotlin Coroutines+ Spring Data R2dbc +* Mockk and Spring Mockk for mocking beans instread of Mockito +* Kotest assertions provides fluent Kotlin DSL API for assertions in tests. +* Spring Doc to expose OopenAPI and SwaggerUI on the management endpoints. The Swagger UI is located to http://localhost:9090/actuator/swagger-ui . +* Docker Compose to serve a running Postgres. + + + ## Troubleshooting +
Ensure Java Home variable is set @@ -118,3 +131,4 @@ source ~/.zshrc java -jar build/todo-xxxx.jar ```
+ From 5cd61c746af5ebfcacd5c9eafa408432a49c6620 Mon Sep 17 00:00:00 2001 From: hantsy Date: Wed, 16 Feb 2022 16:26:21 +0800 Subject: [PATCH 3/3] chore: add plugin management url --- settings.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/settings.gradle.kts b/settings.gradle.kts index ce4cae1..442c6fb 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1 +1,7 @@ +pluginManagement { + repositories { + maven { url = uri("https://repo.spring.io/milestone") } + gradlePluginPortal() + } +} rootProject.name = "todo"