-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
142 lines (125 loc) · 4.99 KB
/
build.gradle
File metadata and controls
142 lines (125 loc) · 4.99 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
134
135
136
137
138
139
140
141
142
plugins {
id 'java'
id 'org.springframework.boot' version '3.3.1'
id 'io.spring.dependency-management' version '1.1.5'
id 'com.google.protobuf' version '0.8.17'
}
group = 'com.project'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'mysql:mysql-connector-java:8.0.33'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
implementation 'io.jsonwebtoken:jjwt-api:0.11.2'
implementation 'io.jsonwebtoken:jjwt-impl:0.11.2'
implementation 'io.jsonwebtoken:jjwt-jackson:0.11.2'
implementation 'com.h2database:h2'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2'
implementation 'org.springframework.boot:spring-boot-starter-mail'
implementation 'javax.mail:javax.mail-api:1.6.2'
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
// JSON
implementation 'org.json:json:20230227'
// 구글
implementation 'com.google.code.gson:gson:2.8.6'
// Geocoder
implementation 'com.google.code.geocoder-java:geocoder-java:0.16'
// 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"
// 헬스체크
implementation 'org.springframework.boot:spring-boot-starter-actuator'
// 레디스
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
// STT
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
// Ensure jackson-databind is compatible with Spring Boot 3.x
implementation 'com.fasterxml.jackson.core:jackson-core:2.15.2'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.15.2'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.2'
// WebSocket
implementation 'org.springframework.boot:spring-boot-starter-websocket'
// gRPC
implementation 'io.grpc:grpc-netty-shaded:1.47.0'
implementation 'io.grpc:grpc-protobuf:1.47.0'
implementation 'io.grpc:grpc-stub:1.55.1'
// Protobuf for Java
implementation 'com.google.protobuf:protobuf-java:3.22.2'
implementation 'javax.annotation:javax.annotation-api:1.3.2'
}
tasks.named('processResources') {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.19.1"
}
plugins {
grpc {
artifact = 'io.grpc:protoc-gen-grpc-java:1.47.0'
}
}
generateProtoTasks {
all().each { task ->
task.plugins {
grpc {
// Options added to --grpc_out
}
}
}
}
}
sourceSets {
main {
proto {
srcDir 'src/main/proto'
}
java {
srcDirs 'build/generated/source/proto/main/java', 'build/generated/source/proto/main/grpc'
}
}
}
processResources.dependsOn('copySecret')
tasks.register('copySecret', Copy) {
from './otoo_submodule' // 서브모듈 디렉토리 경로
include "application*.yml" // 복사할 파일들
into 'src/main/resources' // 복사 위치
}
test {
useJUnitPlatform()
systemProperty "JWT_SECRET_KEY", System.getenv("JWT_SECRET_KEY")
systemProperty "OAUTH_KAKAO_CLIENT_ID", System.getenv("OAUTH_KAKAO_CLIENT_ID")
systemProperty "OAUTH_NAVER_CLIENT_ID", System.getenv("OAUTH_NAVER_CLIENT_ID")
systemProperty "OAUTH_NAVER_CLIENT_SECRET", System.getenv("OAUTH_NAVER_CLIENT_SECRET")
systemProperty "OAUTH_GOOGLE_CLIENT_ID", System.getenv("OAUTH_GOOGLE_CLIENT_ID")
systemProperty "OAUTH_GOOGLE_CLIENT_SECRET", System.getenv("OAUTH_GOOGLE_CLIENT_SECRET")
systemProperty "SPRING_DATASOURCE_URL", System.getenv("SPRING_DATASOURCE_URL")
systemProperty "SPRING_DATASOURCE_USERNAME", System.getenv("SPRING_DATASOURCE_USERNAME")
systemProperty "SPRING_DATASOURCE_PASSWORD", System.getenv("SPRING_DATASOURCE_PASSWORD")
systemProperty "SPRING_MAIL_USERNAME", System.getenv("SPRING_MAIL_USERNAME")
systemProperty "SPRING_MAIL_PASSWORD", System.getenv("SPRING_MAIL_PASSWORD")
systemProperty "FASTAPI_URL", System.getenv("FASTAPI_URL")
systemProperty "REDIS_HOST", System.getenv("REDIS_HOST")
systemProperty "REDIS_PORT", System.getenv("REDIS_PORT")
}