-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
98 lines (80 loc) · 2.97 KB
/
build.gradle.kts
File metadata and controls
98 lines (80 loc) · 2.97 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
plugins {
java
id("org.springframework.boot") version "3.5.5"
id("io.spring.dependency-management") version "1.1.7"
}
group = "com"
version = "0.0.1-SNAPSHOT"
description = "backend"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
mavenCentral()
}
dependencies {
// 스프링부트 스타터
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-data-redis")
implementation("org.redisson:redisson-spring-boot-starter:3.18.0")
implementation("org.springframework.boot:spring-boot-starter-websocket")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springframework.boot:spring-boot-starter-data-elasticsearch")
// AWS S3
implementation(platform("software.amazon.awssdk:bom:2.33.6"))
implementation("software.amazon.awssdk:s3")
// implementation("io.awspring.cloud:spring-cloud-aws-starter-s3:3.3.1") // S3Template 사용 시
// 스프링부트 추가 기능
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.7.0")
implementation("org.springframework.boot:spring-boot-starter-actuator")
// 롬복
compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
// 개발 도구
developmentOnly("org.springframework.boot:spring-boot-devtools")
// DB
runtimeOnly("com.h2database:h2")
runtimeOnly("com.mysql:mysql-connector-j")
// QueryDSL
implementation("io.github.openfeign.querydsl:querydsl-jpa:7.0")
annotationProcessor("io.github.openfeign.querydsl:querydsl-apt:7.0:jpa")
// JWT
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")
testImplementation("org.springframework.security:spring-security-test")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation("com.github.codemonstur:embedded-redis:1.4.2")
implementation("net.datafaker:datafaker:2.1.0")
testImplementation("org.springframework.cloud:spring-cloud-contract-wiremock:4.1.4")
}
tasks.withType<Test> {
useJUnitPlatform()
systemProperty("file.encoding", "UTF-8")
}
// QueryDSL 설정 - 생성된 Q클래스들이 저장될 디렉토리 설정
val querydslDir = "src/main/generated"
sourceSets {
main {
java.srcDirs(querydslDir)
}
}
tasks.withType<JavaCompile> {
options.generatedSourceOutputDirectory.set(file(querydslDir))
}
tasks.named("clean") {
doLast {
delete(file(querydslDir))
}
}