refactor: 하위 모듈 gradle 설정 수정(implementation -> api)

This commit is contained in:
이상진 2025-10-01 10:18:25 +09:00
parent 97c3e1598c
commit 8f0c563d6b
4 changed files with 14 additions and 25 deletions

View File

@ -1,10 +1,9 @@
dependencies { dependencies {
api("net.ttddyy.observation:datasource-micrometer-spring-boot:1.1.2")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.20.0") implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.20.0")
implementation("net.ttddyy.observation:datasource-micrometer-spring-boot:1.1.2") implementation(project(":common:utils"))
testImplementation("io.mockk:mockk:1.14.4") testImplementation("io.mockk:mockk:1.14.4")
implementation(project(":common:utils"))
} }
tasks.named<Jar>("jar") { tasks.named<Jar>("jar") {

View File

@ -7,17 +7,17 @@ plugins {
} }
dependencies { dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-jpa") api("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("com.github.f4b6a3:tsid-creator:5.2.6") api("com.github.f4b6a3:tsid-creator:5.2.6")
implementation(project(":common:utils"))
implementation(project(":common:types"))
testRuntimeOnly("com.h2database:h2") testRuntimeOnly("com.h2database:h2")
testImplementation("org.springframework.boot:spring-boot-starter-test") testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("io.kotest:kotest-runner-junit5:5.9.1") testImplementation("io.kotest:kotest-runner-junit5:5.9.1")
testImplementation("io.kotest.extensions:kotest-extensions-spring:1.3.0") testImplementation("io.kotest.extensions:kotest-extensions-spring:1.3.0")
testImplementation("io.mockk:mockk:1.14.4") testImplementation("io.mockk:mockk:1.14.4")
implementation(project(":common:utils"))
implementation(project(":common:types"))
} }
tasks.named<BootJar>("bootJar") { tasks.named<BootJar>("bootJar") {

View File

@ -7,16 +7,16 @@ plugins {
} }
dependencies { dependencies {
implementation("org.springframework.boot:spring-boot-starter-web") api("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-aop") api("org.springframework.boot:spring-boot-starter-aop")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin") api("com.fasterxml.jackson.module:jackson-module-kotlin")
api(project(":common:log"))
api(project(":common:utils"))
api(project(":common:types"))
testImplementation("io.kotest:kotest-runner-junit5:5.9.1") testImplementation("io.kotest:kotest-runner-junit5:5.9.1")
testImplementation("io.mockk:mockk:1.14.4") testImplementation("io.mockk:mockk:1.14.4")
implementation(project(":common:log"))
implementation(project(":common:utils"))
implementation(project(":common:types"))
} }
tasks.named<BootJar>("bootJar") { tasks.named<BootJar>("bootJar") {

View File

@ -5,16 +5,10 @@ plugins {
} }
dependencies { dependencies {
// Spring
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-validation")
// API docs // API docs
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.13") implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.13")
// DB // DB
implementation("com.github.f4b6a3:tsid-creator:5.2.6")
runtimeOnly("com.h2database:h2") runtimeOnly("com.h2database:h2")
runtimeOnly("com.mysql:mysql-connector-j") runtimeOnly("com.mysql:mysql-connector-j")
@ -24,7 +18,6 @@ dependencies {
// Logging // Logging
implementation("net.logstash.logback:logstash-logback-encoder:8.1") implementation("net.logstash.logback:logstash-logback-encoder:8.1")
implementation("com.github.loki4j:loki-logback-appender:2.0.0") implementation("com.github.loki4j:loki-logback-appender:2.0.0")
implementation("net.ttddyy.observation:datasource-micrometer-spring-boot:1.1.1")
// Observability // Observability
implementation("org.springframework.boot:spring-boot-starter-actuator") implementation("org.springframework.boot:spring-boot-starter-actuator")
@ -52,9 +45,6 @@ dependencies {
// submodules // submodules
implementation(project(":common:persistence")) implementation(project(":common:persistence"))
implementation(project(":common:utils"))
implementation(project(":common:types"))
implementation(project(":common:log"))
implementation(project(":common:web")) implementation(project(":common:web"))
} }