-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
269 lines (212 loc) · 7.9 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
plugins {
id 'java'
id 'org.springframework.boot' version '2.7.18'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
id "com.ewerk.gradle.plugins.querydsl" version "1.0.10"
id 'jacoco'
id 'org.sonarqube' version '4.4.1.3373'
}
group = 'com.jogijo'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
compileJava.options.encoding = 'UTF-8'
repositories {
mavenCentral()
}
ext {
set('springBootVersion', '2.7.18')
set('springCloudGcpVersion', '1.2.8.RELEASE')
set('springCloudVersion', "2021.0.7")
set('queryDslVersion', "5.0.0")
}
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
mavenBom "org.springframework.cloud:spring-cloud-gcp-dependencies:${springCloudGcpVersion}"
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'com.vladmihalcea:hibernate-types-52:2.17.3'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
implementation 'org.apache.httpcomponents:httpcore:4.4.15'
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
// aop
implementation 'org.springframework.boot:spring-boot-starter-aop'
// health check
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:2.3.2'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
// model struct
implementation 'org.mapstruct:mapstruct:1.5.4.Final'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.4.Final'
testAnnotationProcessor("org.mapstruct:mapstruct-processor:1.5.3.Final")
implementation("org.projectlombok:lombok-mapstruct-binding:0.2.0")
// security
implementation('org.springframework.boot:spring-boot-starter-security')
// DB
runtimeOnly("com.mysql:mysql-connector-j")
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
// queryDSL
implementation "com.querydsl:querydsl-jpa:${queryDslVersion}"
implementation "com.querydsl:querydsl-apt:${queryDslVersion}"
// mybatis
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.3.0'
// aws s3
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE'
//jwt
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
// Validation
implementation 'org.springframework.boot:spring-boot-starter-validation'
//oauth
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
//chat
implementation 'org.webjars:sockjs-client:1.1.2'
implementation 'org.webjars:stomp-websocket:2.3.3-1'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-websocket'
implementation 'org.springframework.boot:spring-boot-starter-freemarker'
implementation 'org.webjars.bower:bootstrap:4.3.1'
implementation 'org.webjars.bower:vue:2.5.16'
implementation 'org.webjars.bower:axios:0.17.1'
implementation 'javax.xml.bind:jaxb-api'
// OpenCV
implementation 'org.openpnp:opencv:4.6.0-0'
implementation group: 'com.microsoft.onnxruntime', name: 'onnxruntime', version: '1.12.1'
// fire base
implementation 'com.google.firebase:firebase-admin:9.2.0'
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
// Swagger
implementation 'org.springdoc:springdoc-openapi-ui:1.7.0'
//image
implementation 'org.apache.commons:commons-imaging:1.0-alpha3'
// Azure AI Vision
implementation 'com.azure:azure-ai-vision-imageanalysis:0.15.1-beta.1'
implementation 'com.azure:azure-core-http-netty:1.13.6'
implementation 'com.microsoft.azure.cognitiveservices:azure-cognitiveservices-computervision:1.0.9-beta'
// Google vision api
implementation 'org.springframework.cloud:spring-cloud-gcp-starter-vision'
implementation 'org.springframework.cloud:spring-cloud-gcp-starter-storage'
// firebase admin 종속성에서 api-client 2.2.0 버전을 사용해서 버전 충돌이 났음
implementation 'com.google.api-client:google-api-client:1.31.1'
implementation 'com.google.cloud:google-cloud-storage:1.113.6'
// cache
implementation 'org.springframework.boot:spring-boot-starter-cache'
implementation 'javax.cache:cache-api'
// bucket4j
implementation 'com.giffing.bucket4j.spring.boot.starter:bucket4j-spring-boot-starter:0.8.1'
implementation 'com.github.ben-manes.caffeine:caffeine'
implementation 'com.github.ben-manes.caffeine:jcache'
// TestContainer
testImplementation "org.junit.jupiter:junit-jupiter:5.8.1"
testImplementation "org.testcontainers:testcontainers:1.20.2"
testImplementation "org.testcontainers:junit-jupiter:1.20.2"
testImplementation 'org.testcontainers:mysql:1.19.0'
testImplementation 'mysql:mysql-connector-java:8.0.33'
//flyway
implementation 'org.flywaydb:flyway-core'
implementation 'org.flywaydb:flyway-mysql'
}
def querydslDir = "$buildDir/generated/querydsl"
querydsl {
jpa = true
querydslSourcesDir = querydslDir
}
sourceSets {
main.java.srcDir querydslDir
}
compileQuerydsl {
options.annotationProcessorPath = configurations.querydsl
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
querydsl.extendsFrom compileClasspath
}
tasks.named('test') {
useJUnitPlatform()
finalizedBy 'jacocoTestReport'
}
jacoco {
toolVersion = '0.8.11'
}
jacocoTestReport {
def Qdomains = []
for (qPattern in "**/QA".."**/QZ") {
Qdomains.add(qPattern + "*")
}
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, // 리포트 결과에 제외시킬 디렉토리
exclude: [
'**/dto*',
'**/config*',
'*.Q*'] + Qdomains)
}))
}
reports {
html.required = true
xml.required = true
csv.required = false
}
finalizedBy jacocoTestCoverageVerification
dependsOn test
}
def includePatterns = [
'**/service/*',
]
def excludePatterns = [
'**/dto*',
'**/config*',
'*.Q*'
]
jacocoTestCoverageVerification {
violationRules {
failOnViolation = false
rule {
enabled = true
element = 'CLASS'
limit {
counter = 'LINE'
value = 'COVEREDRATIO'
minimum = 0.80
}
limit {
counter = 'BRANCH'
value = 'COVEREDRATIO'
minimum = 0.80
}
includes = includePatterns
excludes = excludePatterns
}
rule {
enabled = true
element = 'METHOD'
limit {
counter = 'LINE'
value = 'TOTALCOUNT'
maximum = 200
}
includes = includePatterns
excludes = excludePatterns
}
}
dependsOn jacocoTestReport
}
sonar {
properties {
property 'sonar.host.url', 'https://sonarcloud.io'
property 'sonar.organization', 'togetup-server'
property 'sonar.projectKey', 'Wake-up-together-TogetUp_togetup-server'
property 'sonar.coverage.jacoco.xmlReportPaths', '${buildDir}/reports/jacoco/test/jacocoTestReport.xml'
}
}