-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
74 lines (58 loc) · 2.26 KB
/
build.gradle
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
plugins {
id 'java'
id 'org.springframework.boot' version '3.0.0'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
}
group = 'com.example'
version = '1.0.0'
java {
sourceCompatibility = '17'
}
repositories {
mavenCentral()
}
dependencies {
// Spring Boot Starter
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
// Hibernate 6.x (Spring Boot 3.x와 호환)
implementation 'org.hibernate.orm:hibernate-core:6.0.2.Final'
// MySQL 드라이버
implementation 'mysql:mysql-connector-java:8.0.33'
// QueryDSL
implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
annotationProcessor 'com.querydsl:querydsl-apt:5.0.0:jakarta'
// Jakarta EE API (Spring Boot 3.x 및 Hibernate 6.x와 호환)
annotationProcessor 'jakarta.annotation:jakarta.annotation-api'
annotationProcessor 'jakarta.persistence:jakarta.persistence-api'
// Jackson (JSON 처리)
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.0'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.15.0'
implementation 'com.fasterxml.jackson.core:jackson-core:2.15.0'
// Lombok (선택 사항)
compileOnly 'org.projectlombok:lombok:1.18.28'
annotationProcessor 'org.projectlombok:lombok:1.18.28'
// SpringDoc (OpenAPI 3)
// implementation 'org.springdoc:springdoc-openapi-ui:1.7.0'
// implementation 'org.springdoc:springdoc-openapi-data-rest:1.7.0'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
// Test Dependencies
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// Validation
implementation 'org.hibernate.validator:hibernate-validator:8.0.0.Final'
implementation 'jakarta.validation:jakarta.validation-api:3.0.2'
implementation 'org.springframework.boot:spring-boot-starter-validation'
}
tasks.withType(JavaCompile) {
options.annotationProcessorGeneratedSourcesDirectory = file("$buildDir/generated/sources/annotationProcessor/java/main")
}
sourceSets {
main {
java {
srcDirs += "$buildDir/generated/sources/annotationProcessor/java/main"
}
}
}
tasks.named('test') {
useJUnitPlatform()
}