-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
142 lines (118 loc) · 4.87 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'org.springframework.boot' version '3.3.3'
id 'io.spring.dependency-management' version '1.1.6'
id 'org.jetbrains.kotlin.jvm' version '2.0.20'
id 'org.jetbrains.kotlin.plugin.spring' version '2.0.20'
id 'org.jetbrains.kotlin.plugin.jpa' version '2.0.20'
id "org.jetbrains.kotlin.kapt" version "2.0.20"
id "org.liquibase.gradle" version "2.2.1"
id "com.google.osdetector" version "1.7.3"
id 'groovy'
}
group = 'com.softeno'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
ext {
set('testcontainersVersion', '1.20.1')
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'
implementation 'org.jetbrains.kotlin:kotlin-reflect'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation 'org.springframework.boot:spring-boot-starter-validation'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// test utils
testImplementation 'io.projectreactor:reactor-test'
testImplementation 'io.mockk:mockk:1.13.12'
testImplementation 'com.ninja-squad:springmockk:4.0.2'
// wiremock
testImplementation 'org.wiremock:wiremock-standalone:3.9.1'
// monitoring
runtimeOnly 'io.micrometer:micrometer-registry-prometheus'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
// elk
implementation 'net.logstash.logback:logstash-logback-encoder:8.0'
// testcontainers
testImplementation 'org.testcontainers:junit-jupiter'
testImplementation 'org.testcontainers:postgresql'
// guerydsl
implementation 'com.querydsl:querydsl-jpa:5.1.0'
kapt group: 'com.querydsl', name: 'querydsl-apt', version: '5.1.0', classifier: 'jakarta'
// liquibase
implementation ('org.liquibase:liquibase-core:4.29.2') {
exclude group: 'javax.xml.bind', module: 'jaxb-receiver'
exclude group: 'org.liquibase.ext', module: 'liquibase-hibernate5'
}
liquibaseRuntime 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
liquibaseRuntime 'org.jetbrains.kotlin:kotlin-reflect'
liquibaseRuntime 'org.liquibase.ext:liquibase-hibernate6:4.29.2'
liquibaseRuntime 'org.postgresql:postgresql:42.7.4'
liquibaseRuntime 'ch.qos.logback:logback-core:1.5.8'
liquibaseRuntime 'ch.qos.logback:logback-classic:1.5.8'
liquibaseRuntime 'info.picocli:picocli:4.7.6'
liquibaseRuntime "org.springframework.boot:spring-boot-starter-data-jpa:3.3.1"
liquibaseRuntime sourceSets.main.output
// spring security
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
implementation 'org.springframework.boot:spring-boot-starter-security'
testImplementation 'org.springframework.security:spring-security-test'
// kafka
implementation 'org.springframework.kafka:spring-kafka'
testImplementation 'org.springframework.kafka:spring-kafka-test'
// circuit breaker
implementation 'org.springframework.cloud:spring-cloud-starter-circuitbreaker-resilience4j:3.1.2'
// macOs ARM only
if (osdetector.classifier == "osx-aarch_64") {
runtimeOnly("io.netty:netty-resolver-dns-native-macos:4.1.113.Final:${osdetector.classifier}")
}
// springdoc
implementation 'org.springdoc:springdoc-openapi-starter-common:2.6.0'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0'
// zipkin
implementation 'io.micrometer:micrometer-tracing-bridge-otel'
implementation 'io.opentelemetry:opentelemetry-exporter-zipkin'
implementation 'io.zipkin.reporter2:zipkin-sender-urlconnection'
}
liquibase {
activities {
main {
changeLogFile "src/main/resources/db/db.changelog.yml"
url "jdbc:postgresql://localhost:5432/application"
username "admin"
password "admin"
driver 'org.postgresql.Driver'
referenceUrl 'hibernate:spring:com.softeno.template?dialect=org.hibernate.dialect.PostgreSQLDialect&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'
referenceDriver 'liquibase.ext.hibernate.database.connection.HibernateDriver'
}
}
}
dependencyManagement {
imports {
mavenBom "org.testcontainers:testcontainers-bom:${testcontainersVersion}"
}
}
tasks.withType(KotlinCompile) {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '17'
}
}
tasks.named('test') {
useJUnitPlatform()
}