-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
74 lines (62 loc) · 1.96 KB
/
build.gradle
File metadata and controls
74 lines (62 loc) · 1.96 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.4'
id 'io.spring.dependency-management' version '1.1.4'
}
// 환경 변수에서 ENVIRONMENT 값 가져오기
def environment = System.getenv("ENVIRONMENT")
// ENVIRONMENT 값이 production인 경우에만 Sentry 빌드
if (environment == "production") {
sentry {
includeSourceContext = true
org = "connect-gnu"
projectName = "java-spring-boot"
authToken = System.getenv("SENTRY_AUTH_TOKEN")
}
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '21'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
jar {
enabled = false
}
dependencies {
// 캐싱 redis 설정
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-cache'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
// actuator
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'io.micrometer:micrometer-core'
implementation 'io.micrometer:micrometer-registry-prometheus'
implementation 'io.sentry:sentry-spring-boot-starter-jakarta:8.16.0'
implementation 'io.sentry:sentry-jdbc:8.16.0'
implementation 'javax.enterprise:cdi-api:2.0'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'org.postgresql:postgresql'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// 테스트 코드에서 Lombok 사용할 경우 필요
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
compileOnly 'javax:javaee-api:8.0.1'
// 테스트를 위한 h2 설정
implementation 'com.h2database:h2'
runtimeOnly 'com.h2database:h2'
}
tasks.named('test') {
useJUnitPlatform()
ignoreFailures = true
}