-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
93 lines (75 loc) · 2.31 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.3.1'
id 'io.spring.dependency-management' version '1.1.5'
id 'com.epages.restdocs-api-spec' version '0.18.2'
id 'org.hidetake.swagger.generator' version '2.18.2'
}
group = 'play'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
ext {
//snippetsDirectory 설정
snippetsDir = file('build/generated-snippets')
}
dependencies {
//spring
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'
//jwt
implementation 'io.jsonwebtoken:jjwt:0.12.5'
//database
runtimeOnly 'com.h2database:h2'
runtimeOnly 'com.mysql:mysql-connector-j'
//lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
//log format
implementation 'ch.qos.logback.contrib:logback-jackson:0.1.5'
implementation 'ch.qos.logback.contrib:logback-json-classic:0.1.5'
implementation 'net.logstash.logback:logstash-logback-encoder:6.1'
//test
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
//swagger
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2'
implementation 'org.springframework.restdocs:spring-restdocs-webtestclient'
testImplementation 'com.epages:restdocs-api-spec-mockmvc:0.18.2'
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.named('test') {
useJUnitPlatform()
}
openapi3 {
server = "https://pluv.kro.kr"
title = "pluv api 문서"
description = "pluv api를 확인하기 위한 문서"
format = 'json'
outputDirectory = 'build/resources/main/static/docs'
}
tasks.withType(GenerateSwaggerUI) {
dependsOn 'openapi3'
delete file('src/main/resources/static/docs/')
copy {
from "build/resources/main/static/docs"
into "src/main/resources/static/docs/"
}
}
bootJar {
dependsOn(':openapi3')
}