-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
126 lines (97 loc) · 3.57 KB
/
build.gradle
File metadata and controls
126 lines (97 loc) · 3.57 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.3.2'
id 'io.spring.dependency-management' version '1.1.7'
id 'org.flywaydb.flyway' version '10.14.0'
}
group = 'com.momozy'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
def querydslDir = layout.buildDirectory.dir("generated/querydsl").get().asFile
sourceSets {
main.java.srcDirs += querydslDir
}
tasks.withType(JavaCompile).configureEach {
options.getGeneratedSourceOutputDirectory().set(file(querydslDir))
}
clean {
delete file(querydslDir)
}
ext {
set('querydslVersion', "6.10.1")
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:2023.0.1" // Boot 3.2~용
}
}
flyway {
url = project.findProperty('flyway.url')
user = project.findProperty('flyway.user')
password = project.findProperty('flyway.password')
schemas = ['public']
baselineOnMigrate = true
baselineVersion = '0'
locations = ['classpath:db/migration']
}
dependencies {
// ✅ 기본 웹 및 REST API
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
// ✅ Spring Security + OAuth2 (소셜 로그인)
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
// ✅ JPA + MySQL
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
runtimeOnly 'com.mysql:mysql-connector-j'
// ✅ Querydsl
implementation "io.github.openfeign.querydsl:querydsl-jpa:${querydslVersion}"
annotationProcessor "io.github.openfeign.querydsl:querydsl-apt:${querydslVersion}:jpa"
// ✅ Bean Validation
implementation 'org.springframework.boot:spring-boot-starter-validation'
// ✅ 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'
// ✅ AWS S3 (이미지/음성 업로드)
implementation 'software.amazon.awssdk:s3:2.25.22'
implementation 'com.drewnoakes:metadata-extractor:2.18.0'
// ✅ DTO 매핑 (선택)
implementation 'org.mapstruct:mapstruct:1.5.5.Final'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.5.Final'
// ✅ API 문서화 (Swagger)
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
// ✅ 개발 편의
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
// ✅ 테스트
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// ✅ flyway
implementation 'org.flywaydb:flyway-core'
implementation 'org.flywaydb:flyway-mysql'
// ✅ OpenFeign (REST Client)
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
// ✅ Redis
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
// ✅ Apple login
implementation 'com.nimbusds:nimbus-jose-jwt:9.37.3'
implementation 'io.netty:netty-resolver-dns-native-macos:4.1.100.Final:osx-aarch_64'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
tasks.named('test') {
useJUnitPlatform()
}