-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
138 lines (115 loc) · 4.32 KB
/
build.gradle
File metadata and controls
138 lines (115 loc) · 4.32 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
126
127
128
129
130
131
132
133
134
135
136
137
138
plugins {
id 'java'
id 'org.springframework.boot' version '4.0.2'
id 'io.spring.dependency-management' version '1.1.7'
id 'checkstyle'
id "com.diffplug.spotless" version "6.23.3"
}
group = 'com.blaybus'
version = '0.0.1-SNAPSHOT'
description = 'backend service for blaybus contest'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
tasks.withType(JavaCompile) {
// @PathVariable이나 @RequestParam 사용 시, 변수명을 명시하지 않아도(예: Long id)
// 런타임에 파라미터 이름을 추론할 수 있도록 컴파일 결과에 파라미터 정보를 포함합니다.
options.compilerArgs << '-parameters'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
all {
exclude group: 'tools.jackson.core'
}
}
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://repo.spring.io/snapshot' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
dependencies {
// Core Web & REST
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
implementation platform('me.paulschwarz:spring-dotenv-bom:5.1.0')
runtimeOnly 'me.paulschwarz:springboot4-dotenv'
testImplementation 'me.paulschwarz:springboot4-dotenv'
runtimeOnly 'io.micrometer:micrometer-registry-prometheus'
implementation 'org.springframework.boot:spring-boot-starter-validation'
// Data Access
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
runtimeOnly 'org.postgresql:postgresql'
runtimeOnly 'com.h2database:h2'
// REST Client
implementation 'org.springframework.boot:spring-boot-starter-restclient'
// Jackson 3 (tools.jackson) support removed due to resolution failure
// implementation 'tools.jackson.core:jackson-databind:3.0.0-SNAPSHOT'
// implementation 'tools.jackson.core:jackson-core:3.0.0-SNAPSHOT'
// implementation 'tools.jackson.core:jackson-annotations:3.0.0-SNAPSHOT'
// Jackson 2 (com.fasterxml.jackson) - Legacy support for existing domain models
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.0'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.15.0'
implementation 'com.fasterxml.jackson.core:jackson-core:2.15.0'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.0'
// JSON
implementation 'com.fasterxml.jackson.core:jackson-databind'
// JSON
implementation 'com.fasterxml.jackson.core:jackson-databind'
// Security
implementation 'org.springframework.boot:spring-boot-starter-security'
// JWT
implementation 'io.jsonwebtoken:jjwt-api:0.12.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.5'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.5'
// Monitoring
implementation 'org.springframework.boot:spring-boot-starter-actuator'
runtimeOnly 'io.micrometer:micrometer-registry-prometheus'
// Tracing
implementation 'org.springframework.boot:spring-boot-micrometer-tracing-brave'
// Lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
// Development Tools
developmentOnly 'org.springframework.boot:spring-boot-devtools'
// Testing
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.boot:spring-boot-starter-webmvc-test'
testImplementation 'org.springframework.security:spring-security-test'
}
tasks.named('test') {
useJUnitPlatform()
useJUnitPlatform()
// 로컬 테스트 실행 시 Node.js 모듈 경로 인식 지원 (절대 경로 사용)
environment 'NODE_PATH', file('src/main/resources/scripts/node_modules').absolutePath
}
checkstyle {
toolVersion = '8.42'
configFile = file("${rootDir}/rule-config/naver-checkstyle-rules.xml")
maxWarnings = 0
showViolations = true
}
checkstyleMain {
enabled = false
configProperties = [
'suppressionFile': "${rootDir}/rule-config/naver-checkstyle-suppressions.xml"
]
}
checkstyleTest {
enabled = false
}
spotless {
java {
trimTrailingWhitespace()
endWithNewline()
removeUnusedImports()
eclipse().configFile("${rootDir}/rule-config/naver-eclipse-formatter.xml")
}
}