phonebill/kos-mock/build.gradle
hiondal 11dd091671 kos-mock JAR 생성 활성화로 모듈 간 의존성 문제 해결
- kos-mock/build.gradle: jar { enabled = false } → jar { enabled = true }
- bill-service에서 kos-mock DTO 클래스 참조 가능하도록 수정
- 전체 서비스 빌드 성공 확인
2025-09-11 00:00:16 +09:00

59 lines
1.8 KiB
Groovy

// kos-mock 모듈
// 루트 build.gradle의 subprojects 블록에서 공통 설정 적용됨
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
dependencies {
// Spring Boot
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-cache'
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
// Database (Mock 서비스용 H2)
runtimeOnly 'com.h2database:h2'
// Swagger/OpenAPI
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
// JSON Processing
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
// Commons
implementation project(':common')
// Lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// Test
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.boot:spring-boot-testcontainers'
testImplementation 'org.testcontainers:junit-jupiter'
testImplementation 'org.testcontainers:testcontainers:1.19.3'
// Configuration Processor
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
}
tasks.named('test') {
useJUnitPlatform()
}
// JAR 파일 이름 설정 (다른 모듈에서 참조할 수 있도록 enabled = true)
jar {
archiveBaseName = 'kos-mock-service'
archiveVersion = version
enabled = true
}
bootJar {
archiveFileName = 'kos-mock.jar'
}