-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
83 lines (67 loc) · 3.01 KB
/
build.gradle
File metadata and controls
83 lines (67 loc) · 3.01 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.4.3'
id 'io.spring.dependency-management' version '1.1.7'
}
group = 'org.festimate'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
// Spring Boot 관련 라이브러리
implementation 'org.springframework.boot:spring-boot-starter-data-jpa' // JPA (Hibernate) 지원
implementation 'org.springframework.boot:spring-boot-starter-security' // Spring Security
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' // Thymeleaf 템플릿 엔진
implementation 'org.springframework.boot:spring-boot-starter-validation' // Bean Validation (유효성 검사)
implementation 'org.springframework.boot:spring-boot-starter-web' // Spring Web (MVC)
implementation 'org.springframework.boot:spring-boot-starter-web-services' // Web Service 지원 (SOAP)
implementation 'org.springframework.boot:spring-boot-starter-webflux' // WebFlux (비동기 처리)
// Spring Security와 Thymeleaf 연동
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6'
// Lombok (코드 간소화)
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// 개발용 도구
developmentOnly 'org.springframework.boot:spring-boot-devtools' // 자동 리로드 기능
developmentOnly 'org.springframework.boot:spring-boot-docker-compose' // Docker Compose 연동 지원
// MySQL 드라이버 (JPA 데이터베이스 연결용)
runtimeOnly 'com.mysql:mysql-connector-j'
// JWT (JSON Web Token) 관련 라이브러리
implementation 'io.jsonwebtoken:jjwt-api:0.12.3'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.3'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.3'
// 테스트 관련 라이브러리
testImplementation 'org.springframework.boot:spring-boot-starter-test' // Spring Boot 테스트 지원
testImplementation 'io.projectreactor:reactor-test' // WebFlux 테스트 지원
testImplementation 'org.springframework.security:spring-security-test' // Security 테스트 지원
testRuntimeOnly 'org.junit.platform:junit-platform-launcher' // JUnit 테스트 실행기
// --- QueryDSL ---
implementation "com.querydsl:querydsl-jpa:${dependencyManagement.importedProperties['querydsl.version']}:jakarta"
annotationProcessor 'com.querydsl:querydsl-apt:5.0.0:jakarta'
// --- Jakarta Persistence API ---
implementation 'jakarta.persistence:jakarta.persistence-api:3.1.0'
annotationProcessor 'jakarta.persistence:jakarta.persistence-api:3.1.0'
}
sourceSets {
main {
java {
srcDir 'src/main/java'
// Q-타입 생성 위치를 IDE가 인식하도록 추가
srcDir 'build/generated/sources/annotationProcessor/java/main'
}
}
}
tasks.named('test') {
useJUnitPlatform()
}