-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
97 lines (78 loc) · 2.96 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
plugins {
id("java")
id("org.springframework.boot") version "3.2.0"
id("io.spring.dependency-management") version "1.1.4"
// id("com.epages.restdocs-api-spec") version '0.18.2'
}
group 'org.example'
version '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
// querydsl 설정
def generated = 'src/main/generated'
def queryDslVersion = '5.0.0'
dependencies {
implementation 'org.springframework.boot:spring-boot-starter:3.2.0'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'
runtimeOnly 'com.h2database:h2'
// implementation 'mysql:mysql-connector-java'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// QUERYDSL
implementation("com.querydsl:querydsl-core:${queryDslVersion}")
implementation("com.querydsl:querydsl-jpa:${queryDslVersion}:jakarta")
annotationProcessor(
"com.querydsl:querydsl-apt:${queryDslVersion}:jakarta",
"jakarta.persistence:jakarta.persistence-api:3.1.0"
)
// SWAGGER
// implementation 'io.springfox:springfox-boot-starter:3.0.0'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.4.0'
// implementation 'org.springdoc:springdoc-openapi-data-rest:2.4.0'
implementation 'io.swagger.core.v3:swagger-annotations:2.2.15'
// implementation group: 'org.springdoc', name: 'springdoc-openapi-ui', version: '1.7.0'
// LOG
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.9.0'
implementation 'org.slf4j:slf4j-api:2.0.3'
// TEST
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testImplementation 'org.assertj:assertj-core:3.11.1'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.4.2'
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
// testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
// testImplementation 'com.epages:restdocs-api-spec-mockmvc:0.18.2'
// Jakarta Validation
implementation 'org.hibernate.validator:hibernate-validator:6.2.0.Final'
implementation 'jakarta.validation:jakarta.validation-api:3.0.2'
}
// querydsl - QClass 파일 생성 위치
tasks.withType(JavaCompile) {
options.getGeneratedSourceOutputDirectory().set(file(generated))
}
// querydsl - java source set QClass 위치 추가
sourceSets {
main.java.srcDirs += [ generated ]
}
// querydsl - gradle clean 시 QClass 디렉토리 삭제
clean {
delete file(generated)
}
test {
useJUnitPlatform()
}