-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
104 lines (82 loc) · 2.29 KB
/
build.gradle
File metadata and controls
104 lines (82 loc) · 2.29 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
99
100
101
102
103
plugins {
id 'java'
id 'org.springframework.boot' version '3.0.5'
id 'io.spring.dependency-management' version '1.1.0'
id "org.asciidoctor.jvm.convert" version "3.3.2" // restdocs
}
group = 'com.hcommerce'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
configurations {
asciidoctorExt // restdocs
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
// [spring boot starter] web
implementation 'org.springframework.boot:spring-boot-starter-web'
// [spring boot starter] thymeleaf
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
// [spring boot starter] validation
implementation 'org.springframework.boot:spring-boot-starter-validation'
// flyway
implementation 'org.flywaydb:flyway-core'
implementation 'org.flywaydb:flyway-mysql'
// redis
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
implementation 'org.redisson:redisson-spring-boot-starter:3.21.3'
// JWT
implementation 'io.jsonwebtoken:jjwt-api:0.11.2'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.2'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.2'
// devtools
developmentOnly 'org.springframework.boot:spring-boot-devtools'
// mybatis
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.1'
// mysql
implementation 'mysql:mysql-connector-java:8.0.22'
runtimeOnly 'com.mysql:mysql-connector-j'
// lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// [spring boot starter] test
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// restdocs
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
asciidoctorExt 'org.springframework.restdocs:spring-restdocs-asciidoctor'
}
// restdocs
ext {
snippetsDir = file('build/generated-snippets')
}
test {
useJUnitPlatform()
outputs.dir snippetsDir // restdocs
}
// restdocs
asciidoctor {
inputs.dir snippetsDir
configurations 'asciidoctorExt'
dependsOn test
}
// restdocs
asciidoctor.doFirst {
delete file('src/main/resources/static/docs')
}
// restdocs
asciidoctor.doLast {
copy {
from file("build/docs/asciidoc")
into file("src/main/resources/static/docs")
}
bootJar {
copy {
from "${asciidoctor.outputDir}"
into 'src/main/resources/static/docs'
}
}
}