-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
134 lines (107 loc) · 4.38 KB
/
build.gradle
File metadata and controls
134 lines (107 loc) · 4.38 KB
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
plugins {
id 'java'
id 'org.springframework.boot' version '3.3.6'
id 'io.spring.dependency-management' version '1.1.6'
id "org.springdoc.openapi-gradle-plugin" version '1.9.0'
}
ext {
set('springCloudVersion', "2023.0.4")
}
group = 'org.sesac'
bootJar {
archiveFileName = 'service-order.jar'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
// lombok
implementation 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// spring cloud
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
implementation 'org.springframework.cloud:spring-cloud-starter-loadbalancer'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.cloud:spring-cloud-starter'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
// implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap'
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes-client'
// database
runtimeOnly 'com.mysql:mysql-connector-j'
// jpa
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
annotationProcessor 'jakarta.persistence:jakarta.persistence-api'
annotationProcessor 'jakarta.annotation:jakarta.annotation-api'
implementation 'org.springframework.boot:spring-boot-starter-validation'
// modelmapper
implementation 'org.modelmapper:modelmapper:+'
implementation 'org.modelmapper:modelmapper-module-record:+'
// querydsl
implementation 'com.querydsl:querydsl-jpa:5.+:jakarta'
annotationProcessor 'com.querydsl:querydsl-apt:5.+:jakarta'
// api documentation
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0'
// yaml exception messages
implementation 'dev.akkinoc.util:yaml-resource-bundle:2.+'
// hypersistence utils for tsid generator
implementation 'io.hypersistence:hypersistence-utils-hibernate-63:3+'
// log
implementation 'org.springframework.boot:spring-boot-starter-aop'
implementation 'io.micrometer:micrometer-registry-prometheus'
implementation 'io.zipkin.reporter2:zipkin-reporter-brave'
implementation 'io.micrometer:micrometer-tracing-bridge-brave'
implementation 'io.micrometer:micrometer-registry-otlp'
implementation 'io.zipkin.contrib.otel:encoder-brave:0.1.0'
runtimeOnly 'com.github.loki4j:loki-logback-appender:1.5.2'
implementation "io.opentelemetry.instrumentation:opentelemetry-spring-boot-starter"
implementation 'io.opentelemetry:opentelemetry-api:1.27.0'
implementation 'io.opentelemetry:opentelemetry-context:1.27.0'
implementation 'io.opentelemetry:opentelemetry-sdk:1.27.0'
implementation 'io.opentelemetry:opentelemetry-sdk-metrics:1.27.0'
implementation 'io.micrometer:micrometer-core'
// kafka
implementation 'org.springframework.kafka:spring-kafka'
testImplementation 'org.springframework.kafka:spring-kafka-test'
// redis
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
// retry
implementation 'org.springframework.retry:spring-retry'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:$springCloudVersion"
mavenBom "io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom:2.6.0"
}
}
tasks.named('test') {
useJUnitPlatform()
}
def querydslDir = "${project.projectDir}/build/generated/querydsl"
sourceSets {
main.java.srcDirs += [querydslDir]
}
tasks.withType(JavaCompile).configureEach {
options.getGeneratedSourceOutputDirectory().set(file(querydslDir))
}
clean.doLast {
file(querydslDir).deleteDir()
}
openApi {
apiDocsUrl = "http://localhost:8662/v3/api-docs"
outputDir = file("${project.projectDir}/docs")
outputFileName = "openapi.yaml"
waitTimeInSeconds = 30
customBootRun {
args.set(["--spring.profiles.active=dev", "--server.port=8662"])
}
}