diff --git a/ai-recommend/build.gradle b/ai-recommend/build.gradle index 34e83d1..771a2fc 100644 --- a/ai-recommend/build.gradle +++ b/ai-recommend/build.gradle @@ -1,16 +1,4 @@ dependencies { implementation project(':common') - implementation 'com.mysql:mysql-connector-j' - - // HTTP Client for external API - implementation 'org.springframework.boot:spring-boot-starter-webflux' -} - -//external: -// ai: -// api-url: ${EXTERNAL_AI_URL:https://api.openai.com/v1} -// api-key: ${EXTERNAL_AI_KEY:your-api-key} - -bootJar { - archiveFileName = "ai-recommend-service.jar" -} + runtimeOnly 'com.mysql:mysql-connector-j' +} \ No newline at end of file diff --git a/build.gradle b/build.gradle index ebeb413..f60005e 100644 --- a/build.gradle +++ b/build.gradle @@ -42,7 +42,7 @@ subprojects { implementation 'io.jsonwebtoken:jjwt-jackson:0.12.3' compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' - implementation 'com.mysql:mysql-connector-j' + runtimeOnly 'com.mysql:mysql-connector-j' testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation 'org.springframework.security:spring-security-test' } @@ -50,4 +50,4 @@ subprojects { tasks.named('test') { useJUnitPlatform() } -} +} \ No newline at end of file diff --git a/common/build.gradle b/common/build.gradle index 0129569..b46abbb 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -1,32 +1,23 @@ +bootJar { + enabled = false +} + jar { enabled = true archiveClassifier = '' } -bootJar { - enabled = false -} - -// member/build.gradle +// 공통 의존성 재정의 (API 노출용) dependencies { - implementation project(':common') - runtimeOnly 'com.mysql:mysql-connector-j' -} - -// store/build.gradle -dependencies { - implementation project(':common') - runtimeOnly 'com.mysql:mysql-connector-j' -} - -// marketing-content/build.gradle -dependencies { - implementation project(':common') - runtimeOnly 'com.mysql:mysql-connector-j' -} - -// ai-recommend/build.gradle -dependencies { - implementation project(':common') - runtimeOnly 'com.mysql:mysql-connector-j' + implementation 'org.springframework.boot:spring-boot-starter-web' + implementation 'org.springframework.boot:spring-boot-starter-data-jpa' + implementation 'org.springframework.boot:spring-boot-starter-security' + implementation 'org.springframework.boot:spring-boot-starter-validation' + implementation 'org.springframework.boot:spring-boot-starter-data-redis' + implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0' + implementation 'io.jsonwebtoken:jjwt-api:0.12.3' + runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.3' + runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.3' + implementation 'org.projectlombok:lombok' + annotationProcessor 'org.projectlombok:lombok' } \ No newline at end of file diff --git a/marketing-content/build.gradle b/marketing-content/build.gradle index 4fab010..771a2fc 100644 --- a/marketing-content/build.gradle +++ b/marketing-content/build.gradle @@ -1,10 +1,4 @@ dependencies { implementation project(':common') - implementation 'com.mysql:mysql-connector-j' - // HTTP Client for external AI API - implementation 'org.springframework.boot:spring-boot-starter-webflux' -} - -bootJar { - archiveFileName = "marketing-content-service.jar" -} + runtimeOnly 'com.mysql:mysql-connector-j' +} \ No newline at end of file diff --git a/member/build.gradle b/member/build.gradle index 043e34a..771a2fc 100644 --- a/member/build.gradle +++ b/member/build.gradle @@ -1,4 +1,4 @@ dependencies { implementation project(':common') - implementation 'com.mysql:mysql-connector-j' -} + runtimeOnly 'com.mysql:mysql-connector-j' +} \ No newline at end of file diff --git a/store/build.gradle b/store/build.gradle index 909bd30..771a2fc 100644 --- a/store/build.gradle +++ b/store/build.gradle @@ -1,8 +1,4 @@ dependencies { implementation project(':common') - implementation 'com.mysql:mysql-connector-j' -} - -bootJar { - archiveFileName = "store-service.jar" -} + runtimeOnly 'com.mysql:mysql-connector-j' +} \ No newline at end of file