@@ -5,8 +5,6 @@ plugins {
55 id ' io.spring.dependency-management' version ' 1.1.6'
66 id ' org.jetbrains.kotlin.jvm' version ' 2.0.20'
77 id ' org.jetbrains.kotlin.plugin.spring' version ' 2.0.20'
8- id ' org.jetbrains.kotlin.plugin.jpa' version ' 2.0.20'
9- id " org.jetbrains.kotlin.kapt" version " 2.0.20"
108 id " org.liquibase.gradle" version " 2.2.1"
119 id " com.google.osdetector" version " 1.7.3"
1210 id ' groovy'
@@ -27,23 +25,30 @@ repositories {
2725}
2826
2927ext {
28+ set(' springCloudVersion' , ' 2023.0.3' )
3029 set(' testcontainersVersion' , ' 1.20.1' )
3130}
3231
3332dependencies {
34- implementation ' org.springframework.boot:spring-boot-starter-data-jpa'
35- implementation ' org.springframework.boot:spring-boot-starter-web'
33+ implementation ' org.springframework.boot:spring-boot-starter-data-r2dbc'
34+ implementation ' org.springframework.boot:spring-boot-starter-webflux'
35+ implementation ' org.springframework:spring-jdbc'
36+ runtimeOnly ' org.postgresql:r2dbc-postgresql'
37+ runtimeOnly ' org.postgresql:postgresql'
38+ implementation ' io.projectreactor.kotlin:reactor-kotlin-extensions'
39+ implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-reactor'
3640 implementation ' com.fasterxml.jackson.module:jackson-module-kotlin'
3741 implementation ' org.jetbrains.kotlin:kotlin-reflect'
3842 implementation ' org.jetbrains.kotlin:kotlin-stdlib-jdk8'
3943 implementation ' org.springframework.boot:spring-boot-starter-validation'
4044 developmentOnly ' org.springframework.boot:spring-boot-devtools'
41- runtimeOnly ' org.postgresql:postgresql '
45+ implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-slf4j '
4246 annotationProcessor ' org.springframework.boot:spring-boot-configuration-processor'
4347 testImplementation ' org.springframework.boot:spring-boot-starter-test'
4448
4549 // test utils
4650 testImplementation ' io.projectreactor:reactor-test'
51+ testImplementation ' org.jetbrains.kotlinx:kotlinx-coroutines-test'
4752 testImplementation ' io.mockk:mockk:1.13.12'
4853 testImplementation ' com.ninja-squad:springmockk:4.0.2'
4954
@@ -60,10 +65,7 @@ dependencies {
6065 // testcontainers
6166 testImplementation ' org.testcontainers:junit-jupiter'
6267 testImplementation ' org.testcontainers:postgresql'
63-
64- // guerydsl
65- implementation ' com.querydsl:querydsl-jpa:5.1.0'
66- kapt group : ' com.querydsl' , name : ' querydsl-apt' , version : ' 5.1.0' , classifier : ' jakarta'
68+ testImplementation ' org.testcontainers:r2dbc'
6769
6870 // liquibase
6971 implementation (' org.liquibase:liquibase-core:4.29.2' ) {
@@ -72,27 +74,27 @@ dependencies {
7274 }
7375 liquibaseRuntime ' org.jetbrains.kotlin:kotlin-stdlib-jdk8'
7476 liquibaseRuntime ' org.jetbrains.kotlin:kotlin-reflect'
75- liquibaseRuntime ' org.liquibase.ext:liquibase-hibernate6 :4.29.2'
77+ liquibaseRuntime ' org.liquibase.ext:liquibase-postgresql :4.29.2'
7678 liquibaseRuntime ' org.postgresql:postgresql:42.7.4'
7779 liquibaseRuntime ' ch.qos.logback:logback-core:1.5.8'
7880 liquibaseRuntime ' ch.qos.logback:logback-classic:1.5.8'
7981 liquibaseRuntime ' info.picocli:picocli:4.7.6'
80- liquibaseRuntime " org.springframework.boot:spring-boot-starter-data-jpa :3.3.1 "
82+ liquibaseRuntime " org.springframework.boot:spring-boot-starter-data-r2dbc :3.3.3 "
8183 liquibaseRuntime sourceSets. main. output
8284
8385 // spring security
84- implementation ' org.springframework.boot:spring-boot-starter-webflux'
8586 implementation ' org.springframework.boot:spring-boot-starter-oauth2-client'
8687 implementation ' org.springframework.boot:spring-boot-starter-oauth2-resource-server'
8788 implementation ' org.springframework.boot:spring-boot-starter-security'
8889 testImplementation ' org.springframework.security:spring-security-test'
8990
9091 // kafka
9192 implementation ' org.springframework.kafka:spring-kafka'
93+ implementation ' io.projectreactor.kafka:reactor-kafka'
9294 testImplementation ' org.springframework.kafka:spring-kafka-test'
9395
9496 // circuit breaker
95- implementation ' org.springframework.cloud:spring-cloud-starter-circuitbreaker-resilience4j:3.1.2 '
97+ implementation ' org.springframework.cloud:spring-cloud-starter-circuitbreaker-reactor- resilience4j'
9698
9799 // macOs ARM only
98100 if (osdetector. classifier == " osx-aarch_64" ) {
@@ -109,22 +111,22 @@ dependencies {
109111 implementation ' io.zipkin.reporter2:zipkin-sender-urlconnection'
110112
111113}
114+
112115liquibase {
113116 activities {
114117 main {
115- changeLogFile " $p rojectDir / src/main/resources/db/changesets/ changelog.yml"
118+ changeLogFile " src/main/resources/db/db. changelog.yml"
116119 url " jdbc:postgresql://localhost:5432/application"
117120 username " admin"
118121 password " admin"
119122 driver ' org.postgresql.Driver'
120- referenceUrl ' hibernate:spring:com.softeno.template?dialect=org.hibernate.dialect.PostgreSQL95Dialect&hibernate.use_jdbc_metadata_defaults=true&hibernate.physical_naming_strategy=org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy&hibernate.implicit_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy'
121- referenceDriver ' liquibase.ext.hibernate.database.connection.HibernateDriver'
122123 }
123124 }
124125}
125126
126127dependencyManagement {
127128 imports {
129+ mavenBom " org.springframework.cloud:spring-cloud-dependencies:${ springCloudVersion} "
128130 mavenBom " org.testcontainers:testcontainers-bom:${ testcontainersVersion} "
129131 }
130132}
0 commit comments