-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
83 lines (65 loc) · 2.07 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
buildscript {
ext {
projectName = 'Overflow'
projectVersion = '1.0.1'
springBootVersion = '2.7.5'
dependencyManagementVersion = '1.0.15.RELEASE'
spotlessVersion = '6.8.0'
// dependencies
jsonwebtokenVersion = '0.11.5'
flywayVersion = '9.16.0'
}
}
plugins {
id 'java'
id 'org.springframework.boot' version "${springBootVersion}"
id 'io.spring.dependency-management' version "${dependencyManagementVersion}"
id "com.diffplug.spotless" version "${spotlessVersion}"
}
group = 'com.kakao'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '1.8'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
/** apply tasks */
apply from: './tasks/formatting-task.gradle'
apply from: './tasks/install-git-hooks.gradle'
dependencies {
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'
// database
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'mysql:mysql-connector-java'
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'
// test
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.testcontainers:testcontainers:1.17.6'
testImplementation 'org.testcontainers:junit-jupiter:1.17.6'
testImplementation 'org.testcontainers:mysql:1.17.6'
// DB Driver
runtimeOnly 'mysql:mysql-connector-java'
// encryption
implementation group: 'org.mindrot', name: 'jbcrypt', version: '0.4'
// jwt
implementation "io.jsonwebtoken:jjwt-api:${jsonwebtokenVersion}"
implementation "io.jsonwebtoken:jjwt-impl:${jsonwebtokenVersion}"
implementation "io.jsonwebtoken:jjwt-jackson:${jsonwebtokenVersion}"
}
test {
useJUnitPlatform()
testLogging {
events "failed"
exceptionFormat "full"
}
}