-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
105 lines (83 loc) · 3.05 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
98
99
100
101
102
103
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.1'
id 'io.spring.dependency-management' version '1.1.4'
id 'org.unbroken-dome.test-sets' version '4.1.0'
}
group = 'com.ludo.study'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '17'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.mysql:mysql-connector-j'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
runtimeOnly 'io.micrometer:micrometer-registry-prometheus'
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
//Querydsl 추가
implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jakarta"
annotationProcessor "jakarta.annotation:jakarta.annotation-api"
annotationProcessor "jakarta.persistence:jakarta.persistence-api"
// jwt
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
implementation 'com.password4j:password4j:1.8.2'
runtimeOnly 'com.h2database:h2'
// spring dotenv (for inject environment variables into spring config file - application.yaml)
implementation 'me.paulschwarz:spring-dotenv:4.0.0'
// springdoc-openapi (Swagger 사용)
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.5.7'
// test container
testImplementation "org.testcontainers:testcontainers:1.19.7"
testImplementation "org.testcontainers:mysql:1.19.7"
testImplementation "org.testcontainers:junit-jupiter:1.19.7"
// redis
// Client 구현체는 크게 Lettuce, Jedis가 있는데, Lettuce로 구현 했습니다.
// 이유는 별도의 의존성 설정 없이 사용할 수 있기 때문이고,
// Jedis에 비해 더 높은 성능과 상세한 문서를 제공하기 때문입니다.
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
}
tasks.named('test') {
useJUnitPlatform()
}
def querydslSrcDir = 'src/main/generated'
clean {
delete file(querydslSrcDir)
}
tasks.withType(JavaCompile) {
options.generatedSourceOutputDirectory = file(querydslSrcDir)
}
tasks.withType(Test) {
useJUnitPlatform()
}
sourceSets {
main {
java {
srcDir querydslSrcDir
}
}
}
testSets {
test
e2e
integrationTest
}