forked from shinhan-instock/backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
111 lines (97 loc) · 3.24 KB
/
build.gradle
File metadata and controls
111 lines (97 loc) · 3.24 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.3.6'//다운그레이드
id 'io.spring.dependency-management' version '1.1.7'
}
repositories {
mavenCentral()
}
allprojects {
group = 'com.pda'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
repositories {
mavenCentral()
}
ext {
set('springCloudVersion', "2023.0.1")//다운그레이드
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
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'
//롬복
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
//레디스
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
//openfeign
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
implementation 'io.github.openfeign:feign-jackson:13.3'
//batch
implementation 'org.springframework.boot:spring-boot-starter-batch'
testImplementation 'org.springframework.batch:spring-batch-test'
//kafka
implementation 'org.springframework.kafka:spring-kafka'
testImplementation 'org.springframework.kafka:spring-kafka-test'
}
// tasks.named('test') {
// useJUnitPlatform()
// }
// 모듈별 mainClassName 설정
bootJar {
if (project.name == 'core-module') {
mainClass.set('com.pda.core_module.CoreModuleApplication')
} else if (project.name == 'community-module') {
mainClass.set('com.pda.community_module.CommunityModuleApplication')
} else if (project.name == 'piggyBank-module') {
mainClass.set('com.pda.piggyBank_module.PiggyBankModuleApplication')
} else if (project.name == 'stock-module') {
mainClass.set('com.pda.stock_module.StockModuleApplication')
} else {
enabled = false
}
}
}
project(':core-module'){
dependencies{
}
}
project(':community-module') {
dependencies {
implementation project(':core-module')
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'com.mysql:mysql-connector-j'
//s3 설정
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE'
implementation platform('software.amazon.awssdk:bom:2.20.56')
implementation 'software.amazon.awssdk:s3'
}
}
project(':piggyBank-module') {
dependencies {
implementation project(':core-module')
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'com.mysql:mysql-connector-j'
}
}
project(':stock-module') {
dependencies {
implementation project(':core-module')
implementation 'com.google.code.gson:gson'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'com.mysql:mysql-connector-j'
implementation 'org.seleniumhq.selenium:selenium-java'
implementation 'org.springframework.boot:spring-boot-starter-batch'
}
}