-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
112 lines (89 loc) · 3.49 KB
/
Copy pathbuild.gradle
File metadata and controls
112 lines (89 loc) · 3.49 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
104
105
106
107
108
109
110
111
112
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.3'
id 'io.spring.dependency-management' version '1.1.2'
id "com.epages.restdocs-api-spec" version "0.19.2"
}
group = 'com.ranchat'
version = '1.0-SNAPSHOT'
sourceCompatibility = '17'
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://repo.spring.io/snapshot' }
}
configurations {
configureEach {
exclude group: 'commons-logging', module: 'commons-logging'
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-websocket'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
// redis
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
// rdb
runtimeOnly 'com.h2database:h2'
runtimeOnly 'org.postgresql:postgresql'
// queryDsl
implementation "com.querydsl:querydsl-jpa:5.0.0:jakarta"
annotationProcessor "com.querydsl:querydsl-apt:5.0.0:jakarta"
annotationProcessor "jakarta.annotation:jakarta.annotation-api"
annotationProcessor "jakarta.persistence:jakarta.persistence-api"
// restdocs
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
testImplementation 'io.rest-assured:spring-mock-mvc'
testImplementation 'com.epages:restdocs-api-spec-mockmvc:0.19.2'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.4'
// validator
implementation 'commons-validator:commons-validator:1.7'
// spring IO
implementation platform("org.springframework.ai:spring-ai-bom:1.0.0-SNAPSHOT")
implementation 'org.springframework.ai:spring-ai-openai-spring-boot-starter'
implementation 'org.apache.httpcomponents.client5:httpclient5:5.2.1'
// firebase
implementation 'com.google.firebase:firebase-admin:9.1.1'
// logstash-logback-encoder
implementation 'net.logstash.logback:logstash-logback-encoder:7.2'
// logback-access (tomcat access log)
implementation 'ch.qos.logback:logback-access:1.2.1'
}
test {
useJUnitPlatform()
}
// Querydsl 설정부
def generated = 'src/main/generated'
// querydsl QClass 파일 생성 위치를 지정
tasks.withType(JavaCompile) {
options.getGeneratedSourceOutputDirectory().set(file(generated))
}
// java source set 에 querydsl QClass 위치 추가
sourceSets {
main.java.srcDirs += [ generated ]
}
// gradle clean 시에 QClass 디렉토리 삭제
clean {
delete file(generated)
}
openapi3 {
def outputPath = 'src/main/resources/static/api-docs/ranchat'
mkdir(outputPath)
servers = [{ url = "https://dev-api.ranchat.net"}, { url = "localhost:8080"}]
title = "Ranchat API"
description = "Ranchat API 문서"
version = "1.0.0"
format = 'json'
// /static/docs/open-api-3.0.1.json 생성 → jar 파일만 배포할 예정이기에 build 에 출력
outputDirectory = outputPath
outputFileNamePrefix = 'main'
}