Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,7 @@ object Dependencies {

// Sentry
const val SENTRY_SPRING_BOOT_STARTER = "io.sentry:sentry-spring-boot-starter-jakarta:${DependencyVersion.SENTRY}"

// Spring Cloud Config
const val SPRING_CLOUD_STARTER_CONFIG = "org.springframework.cloud:spring-cloud-starter-config"
}
2 changes: 2 additions & 0 deletions buildSrc/src/main/kotlin/DependencyVersion.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ object DependencyVersion {
const val SWAGGER = "2.7.0"

const val SENTRY = "7.14.0"

const val SPRING_CLOUD = "2023.0.3"
}
9 changes: 9 additions & 0 deletions casper-user/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ plugins {
id(Plugin.PROTOBUF) version PluginVersion.PROTOBUF_VERSION
}

dependencyManagement {
imports {
mavenBom("org.springframework.cloud:spring-cloud-dependencies:${DependencyVersion.SPRING_CLOUD}")
}
}

dependencies {
// 스프링 부트 기본 기능
implementation(Dependencies.SPRING_BOOT_STARTER)
Expand Down Expand Up @@ -70,6 +76,9 @@ dependencies {

// Sentry
implementation(Dependencies.SENTRY_SPRING_BOOT_STARTER)

// Spring Cloud Config
implementation(Dependencies.SPRING_CLOUD_STARTER_CONFIG)
}

protobuf {
Expand Down
28 changes: 21 additions & 7 deletions casper-user/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
grpc:
server:
port: 9090
max-inbound-message-size: 3MB
spring:
application:
name: Casper-User
config:
import: "configserver:${CONFIG_SERVER_URL}"
cloud:
config:
label: main
fail-fast: true
retry:
initial-interval: 1000
max-attempts: 6
max-interval: 2000
multiplier: 1.1
profiles:
active: ${SPRING_PROFILES_ACTIVE}

app:
encryption:
key: "@qkrwndnjs12"
management:
endpoints:
web:
exposure:
include: health,info,refresh
Loading