-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
125 lines (86 loc) · 3.05 KB
/
build.gradle
File metadata and controls
125 lines (86 loc) · 3.05 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
113
114
115
116
117
118
119
120
121
122
123
124
125
plugins {
id 'java'
id 'org.springframework.boot' version '3.3.5'
id 'io.spring.dependency-management' version '1.1.7'
id 'checkstyle'
id 'jacoco'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
description = 'Demo project for Spring Boot'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
repositories {
mavenCentral()
maven {
url "https://repo.spring.io/milestone"
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
// mybatis 의존성과 충돌
// implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
// developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.mysql:mysql-connector-j'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
// .env 파일 사용을 위한 의존성
implementation 'me.paulschwarz:spring-dotenv:4.0.0'
// log4j 의존성
implementation 'org.springframework.boot:spring-boot-starter-log4j2'
//spring securit & OAuth2
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
// redis 설정
//lettuce 포함
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
//redis 세션 저장소 설정
implementation 'org.springframework.session:spring-session-data-redis'
// https://mvnrepository.com/artifact/junit/junit
testImplementation 'junit:junit:4.13.2'
// mybatis 설정
// https://mvnrepository.com/artifact/org.mybatis/mybatis
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.3'
runtimeOnly 'com.mysql:mysql-connector-j'
// swagger를 위한 openapi
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0'
/* NATS + JetStream 지원 */
implementation 'io.nats:jnats:2.17.6'
// openai 설정
implementation platform("org.springframework.ai:spring-ai-bom:1.0.0-M5")
implementation 'org.springframework.ai:spring-ai-openai'
/* JSON 직렬화 */
implementation 'com.google.code.gson:gson:2.10.1'
/* test */
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-test
testImplementation 'org.springframework.boot:spring-boot-starter-test:4.0.0'
// https://mvnrepository.com/artifact/junit/junit
testImplementation 'junit:junit:4.13.2'
}
// log4j를 사용하기위해 logback 비활성화
configurations {
all {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}
}
sourceSets {
test {
java {
srcDirs = ['src/test/java']
}
}
}
tasks.named('test') {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
reports {
xml.required = true // ⭐ SonarQube 필수
html.required = true
csv.required = false
}
}