전체 서비스 빌드 설정 업데이트 및 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
-59
View File
@@ -1,10 +1,6 @@
// bill-service 모듈
// 루트 build.gradle의 subprojects 블록에서 공통 설정 적용됨
plugins {
id 'jacoco'
}
dependencies {
// Database (bill service specific)
runtimeOnly 'org.postgresql:postgresql'
@@ -36,62 +32,7 @@ dependencies {
testImplementation 'com.github.tomakehurst:wiremock-jre8:2.35.0'
}
tasks.named('test') {
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
reports {
xml.required = true
csv.required = false
html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
}
}
jacoco {
toolVersion = "0.8.8"
}
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = 0.80
}
}
}
}
springBoot {
buildInfo()
}
// 환경별 실행 프로필 설정
task runDev(type: JavaExec, dependsOn: 'classes') {
group = 'application'
description = 'Run the application with dev profile'
classpath = sourceSets.main.runtimeClasspath
mainClass = 'com.phonebill.bill.BillServiceApplication'
systemProperty 'spring.profiles.active', 'dev'
}
task runProd(type: JavaExec, dependsOn: 'classes') {
group = 'application'
description = 'Run the application with prod profile'
classpath = sourceSets.main.runtimeClasspath
mainClass = 'com.phonebill.bill.BillServiceApplication'
systemProperty 'spring.profiles.active', 'prod'
}
// JAR 파일명 설정
jar {
enabled = false
archiveBaseName = 'bill-service'
}
bootJar {
archiveFileName = 'bill-service.jar'
enabled = true
archiveClassifier = ''
}