This commit is contained in:
hiondal
2025-03-03 14:50:26 +09:00
parent 8d6df6e323
commit 992edd0bd9
19 changed files with 37 additions and 12 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View File
-8
View File
@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
<component name="AdditionalModuleElements">
<content url="file://$MODULE_DIR$/../../../member/build/generated/sources/annotationProcessor/java/test">
<sourceFolder url="file://$MODULE_DIR$/../../../member/build/generated/sources/annotationProcessor/java/test" isTestSource="true" generated="true" />
</content>
</component>
</module>
+33 -1
View File
@@ -2,6 +2,8 @@ plugins {
id 'org.springframework.boot' version '3.4.0' apply false id 'org.springframework.boot' version '3.4.0' apply false
//id 'io.spring.dependency-management' version '1.1.6' apply false //id 'io.spring.dependency-management' version '1.1.6' apply false
id 'java' id 'java'
id "org.sonarqube" version "5.0.0.4638" apply false //apply false 해야 서브 프로젝트에 제대로 적용됨
} }
allprojects { allprojects {
@@ -14,7 +16,14 @@ subprojects {
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'org.springframework.boot' apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management' apply plugin: 'io.spring.dependency-management'
apply plugin: 'org.sonarqube'
apply plugin: 'jacoco' // 서브 프로젝트에 JaCoCo 플러그인 적용
jacoco {
toolVersion = "0.8.11" // JaCoCo 최신 버전 사용
}
repositories { repositories {
mavenCentral() mavenCentral()
} }
@@ -59,6 +68,29 @@ subprojects {
testLogging { testLogging {
events "passed", "skipped", "failed" events "passed", "skipped", "failed"
} }
finalizedBy jacocoTestReport // 테스트 후 JaCoCo 리포트 생성
}
jacocoTestReport {
dependsOn test
reports {
xml.required = true // SonarQube 분석을 위해 XML 형식 필요
csv.required = false
html.required = true
html.outputLocation = layout.buildDirectory.dir("jacocoHtml").get().asFile
}
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
"**/config/**", // 설정 클래스 제외
"**/entity/**", // 엔티티 클래스 제외
"**/dto/**", // DTO 클래스 제외
"**/*Application.class", // 메인 애플리케이션 클래스 제외
"**/exception/**" // 예외 클래스 제외
])
}))
}
} }
} }
+1 -1
View File
@@ -39,7 +39,7 @@ podTemplate(
stage("Get Source") { stage("Get Source") {
checkout scm checkout scm
props = readProperties file: "deployment/deploy_env_vars" props = readProperties file: "deployment/deploy_env_vars"
namespace = "${props.teamid}-${props.root_project}-ns" namespace = "${props.namespace}"
} }
stage("Setup AKS") { stage("Setup AKS") {
+3 -2
View File
@@ -1,9 +1,10 @@
# Team Settings # Team Settings
teamid=dg0200 teamid=unicorn
root_project=lifesub root_project=lifesub
namespace=unicorn-lifesub-ns
# Container Registry Settings # Container Registry Settings
registry=dg0200cr.azurecr.io registry=unicorncr.azurecr.io
image_org=lifesub image_org=lifesub
# Application Settings # Application Settings