-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
173 lines (134 loc) · 4.91 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.2'
id 'io.spring.dependency-management' version '1.1.4'
id 'jacoco'
}
group = 'synk'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '17'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
// spring boot
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
// lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// mapper
implementation 'org.mapstruct:mapstruct:1.5.3.Final'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.3.Final'
annotationProcessor files('spi/accessornaming-spi-impl-1.0.0.jar')
// mysql
runtimeOnly 'com.mysql:mysql-connector-j'
// h2
runtimeOnly 'com.h2database:h2'
// swagger
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0")
//implementation("org.springdoc:springdoc-openapi-ui:1.6.11")
// webflux
implementation 'org.springframework.boot:spring-boot-starter-webflux'
// email
implementation 'org.springframework.boot:spring-boot-starter-mail'
implementation 'org.springframework:spring-context'
implementation 'org.springframework:spring-context-support'
implementation 'com.sun.mail:jakarta.mail:2.0.1'
// security
implementation 'com.auth0:java-jwt:4.2.1'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-redis', version: '2.4.10'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
// jwt
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5'
// Querydsl 추가
implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jakarta"
annotationProcessor "jakarta.annotation:jakarta.annotation-api"
annotationProcessor "jakarta.persistence:jakarta.persistence-api"
// Logging
implementation 'org.springframework.boot:spring-boot-starter-logging'
//implementation group:'javax.servlet', name:'javax.servlet-api', version:'3.1.0'
testImplementation 'org.springframework.security:spring-security-test'
// validate
implementation 'org.hibernate.validator:hibernate-validator'
//gson
implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1'
// test
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
// mac m1 setting
implementation 'io.netty:netty-resolver-dns-native-macos:4.1.68.Final:osx-aarch_64'
// aws
implementation "software.amazon.awssdk:s3:2.21.0"
// PATCH 메서드 지원을 위함
implementation group: 'org.apache.httpcomponents.client5', name: 'httpclient5', version: '5.3.1'
// 메일 서비스를 위함
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
// discord web hook
implementation('com.github.napstr:logback-discord-appender:1.0.0')
// aop
implementation 'org.springframework.boot:spring-boot-starter-aop'
// ssh 터널링 세팅
implementation 'com.github.mwiede:jsch:0.2.17'
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
// actuator 설정
implementation 'org.springframework.boot:spring-boot-starter-actuator'
// cloudfront
implementation("software.amazon.awssdk:bom:2.21.1")
implementation 'software.amazon.awssdk:cloudfront:2.22.3'
}
tasks.named('test') {
useJUnitPlatform()
finalizedBy jacocoTestCoverageVerification
}
clean {
delete file('src/main/generated')
}
jacoco {
toolVersion = '0.8.7'
}
jacocoTestReport {
reports {
xml.required.set(true)
csv.required.set(true)
html.required.set(true)
}
afterEvaluate {
classDirectories.setFrom(
files(classDirectories.files.collect {
fileTree(dir: it, excludes: [
'**/*Application*',
'**/*Exception*',
'**/dto/**',
// ...
])
})
)
}
}
jacocoTestCoverageVerification {
violationRules {
rule {
// ...
excludes = [
'*.*Application',
'*.*Exception',
'*.dto.*',
// ...
]
}
}
}