전체 서비스 빌드 설정 업데이트 및 kos-mock 데이터 동기화

This commit is contained in:
hiondal
2025-09-11 18:37:56 +09:00
parent fb0c5da973
commit 0f1e22c5dc
8 changed files with 41 additions and 287 deletions
-45
View File
@@ -44,52 +44,7 @@ dependencyManagement {
}
}
// 추가 테스트 설정 (루트에서 기본 설정됨)
tasks.named('test') {
systemProperty 'spring.profiles.active', 'test'
}
// JAR 파일명 설정
jar {
archiveBaseName = 'api-gateway'
enabled = false
}
bootJar {
archiveFileName = 'api-gateway.jar'
// 빌드 정보 추가
manifest {
attributes(
'Implementation-Title': 'PhoneBill API Gateway',
'Implementation-Version': "${version}",
'Built-By': System.getProperty('user.name'),
'Built-JDK': System.getProperty('java.version'),
'Build-Time': new Date().format('yyyy-MM-dd HH:mm:ss')
)
}
}
// 개발 환경 실행 설정
if (project.hasProperty('dev')) {
bootRun {
systemProperty 'spring.profiles.active', 'dev'
jvmArgs = ['-Dspring.devtools.restart.enabled=true']
}
}
// 프로덕션 환경 실행 설정
if (project.hasProperty('prod')) {
bootRun {
systemProperty 'spring.profiles.active', 'prod'
jvmArgs = [
'-server',
'-Xms512m',
'-Xmx1024m',
'-XX:+UseG1GC',
'-XX:G1HeapRegionSize=16m',
'-XX:+UseStringDeduplication',
'-XX:+OptimizeStringConcat'
]
}
}