-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
84 lines (65 loc) · 2.51 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
plugins {
id 'org.springframework.boot' version '2.4.2'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
group = 'com.gramo'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
ext { // 변수같은 개념
mapstructVersion = "1.4.2.FinalZ"
lombokVersion = "1.18.20"
}
dependencies {
// starter web
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter'
// lombok and mapstruct
implementation "org.mapstruct:mapstruct:1.4.2.Final"
implementation "org.projectlombok:lombok:1.18.20"
implementation 'org.projectlombok:lombok-mapstruct-binding:0.2.0'
annotationProcessor "org.projectlombok:lombok-mapstruct-binding:0.2.0"
annotationProcessor "org.mapstruct:mapstruct-processor:1.4.2.Final"
annotationProcessor "org.projectlombok:lombok:1.18.20"
// 다른 방법으로 받으면 작동하지 않아서 조심해야 한다.
// test
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
// database
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
runtimeOnly 'mysql:mysql-connector-java'
testImplementation 'com.h2database:h2'
// validate
implementation 'org.springframework.boot:spring-boot-starter-validation'
// spring mail
implementation "org.springframework.boot:spring-boot-starter-mail"
// jackson
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.11.2'
// security
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation group: 'io.jsonwebtoken', name: 'jjwt', version: '0.2'
// redis
implementation('org.springframework.boot:spring-boot-starter-data-redis')
implementation group: 'it.ozimov', name: 'embedded-redis', version: '0.7.2'
// firebase
implementation 'com.google.firebase:firebase-admin:7.1.1'
// redis
implementation('org.springframework.boot:spring-boot-starter-data-redis')
implementation group: 'it.ozimov', name: 'embedded-redis', version: '0.7.2'
}
compileJava {
options.compilerArgs = [
'-Amapstruct.defaultComponentModel=spring' // 이걸 붙여주면 Mapper에서 옵션 설정을 하지 않아도 된다.
]
}
test {
useJUnitPlatform()
}