-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
174 lines (135 loc) · 5.43 KB
/
build.gradle
File metadata and controls
174 lines (135 loc) · 5.43 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
// buildscript는 맨 위에 와야 함
buildscript {
ext {
flywayVersion = '10.19.0' // 최신 버전
}
repositories {
mavenCentral()
}
dependencies {
classpath "org.flywaydb:flyway-gradle-plugin:${flywayVersion}"
classpath "org.flywaydb:flyway-mysql:${flywayVersion}" // MySQL 8.4 지원을 위해 추가
}
}
plugins {
id 'java'
id 'war'
}
// flyway 플러그인 적용
apply plugin: 'org.flywaydb.flyway'
group 'org.scoula'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
ext {
junitVersion = '5.10.2'
springVersion = '5.3.37'
lombokVersion = '1.18.30'
log4j2Version = '2.20.0'
jacksonVersion = '2.15.3'
aspectjVersion = '1.9.20'
springKafkaVersion = '2.9.10'
}
configurations.all {
resolutionStrategy {
force "org.springframework:spring-core:5.3.37"
force "org.springframework:spring-beans:5.3.37"
force "org.springframework:spring-context:5.3.37"
force "org.springframework:spring-aop:5.3.37"
force "org.springframework:spring-webmvc:5.3.37"
force "org.springframework:spring-jdbc:5.3.37"
force "org.springframework:spring-tx:5.3.37"
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
// Java 17로 업그레이드
sourceCompatibility = '17'
targetCompatibility = '17'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
dependencies {
// Spring Framework
implementation("org.springframework:spring-context:${springVersion}") {
exclude group: 'commons-logging', module: 'commons-logging'
}
implementation "org.springframework:spring-webmvc:${springVersion}"
implementation 'javax.inject:javax.inject:1'
// AOP
implementation "org.aspectj:aspectjrt:${aspectjVersion}"
implementation "org.aspectj:aspectjweaver:${aspectjVersion}"
// Servlet API (Tomcat이 제공하므로 provided)
providedCompile 'javax.servlet:javax.servlet-api:4.0.1'
// JSP, SERVLET, JSTL
compileOnly 'javax.servlet.jsp:javax.servlet.jsp-api:2.3.3'
implementation 'javax.servlet:jstl:1.2'
// Log4j2 Logging (버전 통일)
implementation "org.apache.logging.log4j:log4j-api:${log4j2Version}"
implementation "org.apache.logging.log4j:log4j-core:${log4j2Version}"
implementation "org.apache.logging.log4j:log4j-slf4j-impl:${log4j2Version}"
implementation 'org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4.1:1.16'
// xml내 한글 처리
implementation 'xerces:xercesImpl:2.12.2'
// Lombok
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
// Jackson - Json 처리 (버전 업그레이드)
implementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${jacksonVersion}"
// 테스트
testImplementation "org.springframework:spring-test:${springVersion}"
testCompileOnly "org.projectlombok:lombok:${lombokVersion}"
testAnnotationProcessor "org.projectlombok:lombok:${lombokVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
// 데이터베이스
implementation 'com.mysql:mysql-connector-j:8.1.0'
implementation 'com.zaxxer:HikariCP:5.0.1' // 버전 업그레이드
implementation "org.springframework:spring-tx:${springVersion}"
implementation "org.springframework:spring-jdbc:${springVersion}"
// MyBatis (버전 업그레이드)
implementation 'org.mybatis:mybatis:3.5.13'
implementation 'org.mybatis:mybatis-spring:2.1.1'
// Swagger 2.9.2 (더 안정적인 버전)
implementation 'io.springfox:springfox-swagger2:2.9.2'
implementation 'io.springfox:springfox-swagger-ui:2.9.2'
// Flyway 최신 버전
implementation 'org.flywaydb:flyway-core:10.19.0'
implementation 'org.flywaydb:flyway-mysql:10.19.0' // MySQL 8.4 지원
//KAFKA
implementation "org.springframework.kafka:spring-kafka:${springKafkaVersion}"
// 스프링 시큐리티
implementation 'org.springframework.security:spring-security-config:5.8.10'
implementation 'org.springframework.security:spring-security-web:5.8.10'
implementation 'org.springframework.security:spring-security-core:5.8.10'
// JWT (JJWT)
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5'
// Redis (Lettuce 기반 클라이언트)
implementation 'org.springframework.data:spring-data-redis:2.7.18'
implementation 'io.lettuce:lettuce-core:6.3.1.RELEASE'
// Bean Validation (JSR-380)
implementation 'javax.validation:validation-api:2.0.1.Final'
implementation 'org.hibernate.validator:hibernate-validator:6.0.20.Final'
implementation 'org.glassfish:javax.el:3.0.0'
// csv 처리
implementation 'com.opencsv:opencsv:5.7.1'
// SMS 인증
implementation 'net.nurigo:sdk:4.3.0'
// firebase admin SDK
implementation 'com.google.firebase:firebase-admin:9.1.1'
// 스프링 배치
implementation 'org.springframework.batch:spring-batch-core:4.3.10'
// redis shedlock
implementation 'net.javacrumbs.shedlock:shedlock-spring:5.16.0'
implementation 'net.javacrumbs.shedlock:shedlock-provider-redis-spring:5.16.0'
}
test {
useJUnitPlatform()
}