mirror of
https://github.com/cna-bootcamp/phonebill.git
synced 2025-12-06 08:06:24 +00:00
변경사항: - SwaggerConfig.java 클래스 완전 삭제 - application.yml에서 springdoc 설정 모두 제거 - build.gradle에서 springdoc-openapi-starter-webflux-ui 의존성 제거 API Gateway는 단순 라우팅 역할만 담당하므로 Swagger 불필요 각 마이크로서비스별로 개별 Swagger UI 사용하는 구조로 변경: - User Service: http://localhost:8081/swagger-ui.html - Bill Service: http://localhost:8082/swagger-ui.html - Product Service: http://localhost:8083/swagger-ui.html - KOS Mock: http://localhost:8084/swagger-ui.html 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
130 lines
4.6 KiB
Groovy
130 lines
4.6 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.springframework.boot' version '3.3.0' apply false
|
|
id 'io.spring.dependency-management' version '1.1.6' apply false
|
|
id 'io.freefair.lombok' version '8.10' apply false
|
|
}
|
|
|
|
group = 'com.unicorn.phonebill'
|
|
version = '1.0.0'
|
|
|
|
allprojects {
|
|
repositories {
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
apply plugin: 'java'
|
|
apply plugin: 'io.freefair.lombok'
|
|
|
|
if (it.name == 'common') {
|
|
apply plugin: 'io.spring.dependency-management'
|
|
} else {
|
|
apply plugin: 'org.springframework.boot'
|
|
apply plugin: 'io.spring.dependency-management'
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
compileOnly {
|
|
extendsFrom annotationProcessor
|
|
}
|
|
}
|
|
|
|
tasks.named('test') {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
// Common versions for all subprojects
|
|
ext {
|
|
jjwtVersion = '0.12.5'
|
|
springdocVersion = '2.5.0'
|
|
mapstructVersion = '1.5.5.Final'
|
|
commonsLang3Version = '3.14.0'
|
|
commonsIoVersion = '2.16.1'
|
|
hypersistenceVersion = '3.7.3'
|
|
openaiVersion = '0.18.2'
|
|
feignJacksonVersion = '13.1'
|
|
}
|
|
}
|
|
|
|
// Configure only service modules (exclude common and api-gateway)
|
|
configure(subprojects.findAll { it.name != 'common' && it.name != 'api-gateway' }) {
|
|
|
|
dependencies {
|
|
|
|
// Common Spring Boot Starters
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
implementation 'org.springframework.boot:spring-boot-starter-cache'
|
|
|
|
// Actuator for health checks and monitoring
|
|
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
|
|
|
// JWT Authentication (common across all services)
|
|
implementation "io.jsonwebtoken:jjwt-api:${jjwtVersion}"
|
|
runtimeOnly "io.jsonwebtoken:jjwt-impl:${jjwtVersion}"
|
|
runtimeOnly "io.jsonwebtoken:jjwt-jackson:${jjwtVersion}"
|
|
|
|
// JSON Processing
|
|
implementation 'com.fasterxml.jackson.core:jackson-databind'
|
|
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
|
|
|
|
// API Documentation (common across all services)
|
|
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:${springdocVersion}"
|
|
|
|
// Common Utilities
|
|
implementation "org.apache.commons:commons-lang3:${commonsLang3Version}"
|
|
|
|
// Testing
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
testImplementation 'org.springframework.security:spring-security-test'
|
|
testImplementation 'org.testcontainers:junit-jupiter'
|
|
testImplementation 'org.testcontainers:testcontainers'
|
|
testImplementation 'org.mockito:mockito-junit-jupiter'
|
|
testImplementation 'org.awaitility:awaitility:4.2.0'
|
|
|
|
// Configuration Processor
|
|
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
|
|
}
|
|
}
|
|
|
|
// Configure API Gateway separately (uses WebFlux instead of Web)
|
|
configure(subprojects.findAll { it.name == 'api-gateway' }) {
|
|
dependencies {
|
|
// WebFlux instead of Web for reactive programming
|
|
implementation 'org.springframework.boot:spring-boot-starter-webflux'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-redis-reactive'
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
|
|
|
|
// Actuator for health checks and monitoring
|
|
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
|
|
|
// JWT Authentication (same as other services)
|
|
implementation "io.jsonwebtoken:jjwt-api:${jjwtVersion}"
|
|
implementation "io.jsonwebtoken:jjwt-impl:${jjwtVersion}"
|
|
implementation "io.jsonwebtoken:jjwt-jackson:${jjwtVersion}"
|
|
|
|
|
|
// Testing (WebFlux specific)
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
testImplementation 'org.springframework.security:spring-security-test'
|
|
testImplementation 'io.projectreactor:reactor-test'
|
|
|
|
// Configuration Processor
|
|
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
|
|
}
|
|
}
|
|
|