-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
133 lines (106 loc) · 3.35 KB
/
build.gradle
File metadata and controls
133 lines (106 loc) · 3.35 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
plugins {
id 'java'
id 'org.springframework.boot' version '2.7.13'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
id 'com.diffplug.spotless' version '6.19.0'
id 'pmd'
}
group = 'kr.co.finote'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '11'
}
pmd {
toolVersion = "6.55.0"
rulesMinimumPriority = 5
ruleSetFiles = files("config/pmd/pmd.xml")
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.7.1'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
//needed for test environment
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
runtimeOnly 'org.postgresql:postgresql'
// swagger
implementation 'org.springdoc:springdoc-openapi-ui:1.7.0'
// validation
implementation 'org.springframework.boot:spring-boot-starter-validation'
// logback slack
implementation 'com.github.maricn:logback-slack-appender:1.6.1'
// 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'
// elasticsearch
implementation 'org.springframework.boot:spring-boot-starter-data-elasticsearch'
implementation 'co.elastic.clients:elasticsearch-java:7.17.3'
implementation 'org.elasticsearch.client:elasticsearch-rest-client:7.17.3'
implementation 'jakarta.json:jakarta.json-api:2.0.1'
// markdown to text
implementation 'com.vladsch.flexmark:flexmark-all:0.64.8'
implementation 'org.jsoup:jsoup:1.16.1'
// Redis
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
//S3
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE'
implementation 'com.amazonaws:aws-java-sdk-s3:1.12.281'
// email code
implementation 'org.springframework.boot:spring-boot-starter-mail'
//h2
runtimeOnly 'com.h2database:h2:1.4.199'
//webflux
implementation 'org.springframework.boot:spring-boot-starter-webflux'
//SQS
implementation group: 'org.springframework.cloud', name: 'spring-cloud-aws-messaging', version: '2.2.1.RELEASE'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-validation', version: '2.5.6'
//Sentry
implementation 'io.sentry:sentry-spring-boot-starter:6.32.0'
implementation 'io.sentry:sentry-logback:6.32.0'
}
tasks.named('test') {
useJUnitPlatform()
}
spotless {
java {
// import 순서 정의
importOrder(
"java",
"javax",
"lombok",
"org.springframework",
"",
"\\#",
"org.junit",
"\\#org.junit",
"com.guide",
"\\#com.guide"
)
// 사용하지 않는 import 제거
removeUnusedImports()
// 구글 자바 포맷 적용
googleJavaFormat()
// 들여쓰기
indentWithTabs(2)
indentWithSpaces(4)
// 공백 제거
trimTrailingWhitespace()
// 끝 부분 new line 처리
endWithNewline()
}
}