mirror of
https://github.com/cna-bootcamp/phonebill.git
synced 2026-06-12 19:49:10 +00:00
전체 서비스 빌드 설정 업데이트 및 kos-mock 데이터 동기화
This commit is contained in:
@@ -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 = ''
|
||||
}
|
||||
Reference in New Issue
Block a user