Repository navigation
Expand file tree
/
Copy pathbuild.gradle
More file actions
89 lines (73 loc) · 2.9 KB
/
Copy pathbuild.gradle
File metadata and controls
89 lines (73 loc) · 2.9 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.3.8'
id 'io.spring.dependency-management' version '1.1.7'
}
group = 'goorm'
version = '0.0.1-SNAPSHOT'
ext {
set('springCloudVersion', "2023.0.1")
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
/*
* 💡 프로젝트 의존성 정의
*/
dependencies {
// --- 🧭 API 문서 & Validation ---
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0' // Swagger UI
implementation 'org.springframework.boot:spring-boot-starter-validation' // @Valid 유효성 검증
// --- ☁️ Spring Cloud & AWS ---
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE' // AWS SDK (S3, SES 등)
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign' // OpenFeign HTTP 클라이언트
// --- 🔐 Security & OAuth2 ---
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
// --- 🧾 JWT ---
implementation 'io.jsonwebtoken:jjwt-api:0.12.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.5'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.5' // JWT 파싱용 Jackson 모듈
// --- ☎ Twilio ---
implementation('com.twilio.sdk:twilio:9.13.0') { // 음성/문자 알림용 Twilio SDK
exclude group: 'io.jsonwebtoken'
}
// --- 🌐 Web & WebFlux ---
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-webflux' // Reactive API 호출용 WebClient
// --- 💾 Database & JPA ---
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.mariadb.jdbc:mariadb-java-client:3.3.2' // MariaDB 드라이버
runtimeOnly 'org.postgresql:postgresql' // PostgreSQL 드라이버
runtimeOnly 'com.mysql:mysql-connector-j' // MySQL 드라이버 (환경별 선택)
// --- ⚙️ Data & Caching ---
implementation 'org.springframework.boot:spring-boot-starter-data-redis' // Redis 캐싱
implementation 'com.fasterxml.jackson.core:jackson-databind' // JSON 직렬화/역직렬화
// --- 🧩 HTML Parser ---
implementation 'org.jsoup:jsoup:1.16.1' // HTML 파싱 및 데이터 스크래핑용
// --- 🧱 Lombok ---
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// --- 🧪 Test ---
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
tasks.named('test') {
useJUnitPlatform()
}