-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
101 lines (81 loc) · 3.06 KB
/
Copy pathbuild.gradle
File metadata and controls
101 lines (81 loc) · 3.06 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.4.5'
id 'io.spring.dependency-management' version '1.1.7'
}
group = 'dk.gatchaz'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencyManagement {
imports {
// Spring AI BOM (스타터 버전 관리). Spring Boot 3.4.x 호환 버전.
mavenBom "org.springframework.ai:spring-ai-bom:1.0.0"
}
}
sourceSets {
main {
resources {
// 매퍼 XML을 매퍼 인터페이스와 같은 위치(src/main/java)에 두기 위해 추가
srcDirs += 'src/main/java'
exclude '**/*.java'
}
}
}
tasks.register('copyPrivate', Copy) {
from('Server-Secret') {
include '*.yml'
}
into 'src/main/resources'
}
tasks.named('processResources') {
dependsOn 'copyPrivate'
}
dependencies {
/** Spring Boot starters **/
// implementation 'org.springframework.boot:spring-boot-starter-security'
// implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-web-services'
implementation 'org.springframework.boot:spring-boot-starter-validation'
/** MyBatis **/
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.4'
/** JWT libraries **/
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5'
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.0'
/** Lombok **/
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
/** MySQL JDBC driver **/
runtimeOnly 'com.mysql:mysql-connector-j'
/** P6Spy - 실행 SQL을 파라미터가 채워진(복붙 가능) 형태로 로깅 **/
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.10.0'
/** Spring AI - OpenAI 호환 스타터. 무료 티어 Groq 사용(base-url 로 지정). base-url/model 만 바꾸면 OpenAI/로컬 Ollama 등으로 교체 가능 **/
implementation 'org.springframework.ai:spring-ai-starter-model-openai'
/** Development tools **/
developmentOnly 'org.springframework.boot:spring-boot-devtools'
// developmentOnly 'org.springframework.boot:spring-boot-docker-compose'
/** Testing dependencies **/
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
/** Google ID Token 검증용 **/
implementation 'com.google.api-client:google-api-client:2.8.1'
/** Swagger for API documentation **/
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.5'
}
tasks.named('test') {
useJUnitPlatform()
}