-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (54 loc) · 2.02 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
plugins {
id 'java'
id 'org.springframework.boot' version '2.7.13'
id 'io.spring.dependency-management' version '1.1.2'
id "org.springdoc.openapi-gradle-plugin" version "1.6.0"
}
group = 'likelion.underdog'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '17'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
// web
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
// lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// 레포지토리
implementation 'org.springframework.boot:spring-boot-starter-data-jpa' // ORM
runtimeOnly 'com.mysql:mysql-connector-j' // MySQL
// 테스트
runtimeOnly 'com.h2database:h2' // test DB
testImplementation 'org.springframework.boot:spring-boot-starter-test' // test 의존성
testImplementation 'org.springframework.security:spring-security-test' // test security 의존성
// 로그인
implementation 'org.springframework.boot:spring-boot-starter-security' // security
implementation group: 'com.auth0', name: 'java-jwt', version: '4.2.1' // jwt
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client' // oauth2.0 (소셜로그인)
// swagger - 1.7.0이 springboot 2.x 을 지원하는 가장 최신 버전 (출처 : springdoc.org/#properties)
implementation group: 'org.springdoc', name: 'springdoc-openapi-ui', version: '1.7.0'
// redis
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-redis', version: '2.7.14'
implementation 'io.lettuce:lettuce-core:6.2.5.RELEASE'
// thymeleaf
implementation 'org.thymeleaf:thymeleaf:3.0.12.RELEASE'
// smtp
implementation 'org.springframework.boot:spring-boot-starter-mail'
}
test {
useJUnitPlatform()
}
// plain jar 비활
jar {
enabled = false
}