diff --git a/common/log/build.gradle.kts b/common/log/build.gradle.kts index 7146ccca..bbd23d42 100644 --- a/common/log/build.gradle.kts +++ b/common/log/build.gradle.kts @@ -1,10 +1,9 @@ dependencies { + api("net.ttddyy.observation:datasource-micrometer-spring-boot:1.1.2") 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") - - implementation(project(":common:utils")) } tasks.named("jar") { diff --git a/common/persistence/build.gradle.kts b/common/persistence/build.gradle.kts index bf2cb2ad..5f8dea5c 100644 --- a/common/persistence/build.gradle.kts +++ b/common/persistence/build.gradle.kts @@ -7,17 +7,17 @@ plugins { } dependencies { - implementation("org.springframework.boot:spring-boot-starter-data-jpa") - implementation("com.github.f4b6a3:tsid-creator:5.2.6") + api("org.springframework.boot:spring-boot-starter-data-jpa") + api("com.github.f4b6a3:tsid-creator:5.2.6") + + implementation(project(":common:utils")) + implementation(project(":common:types")) testRuntimeOnly("com.h2database:h2") testImplementation("org.springframework.boot:spring-boot-starter-test") testImplementation("io.kotest:kotest-runner-junit5:5.9.1") testImplementation("io.kotest.extensions:kotest-extensions-spring:1.3.0") testImplementation("io.mockk:mockk:1.14.4") - - implementation(project(":common:utils")) - implementation(project(":common:types")) } tasks.named("bootJar") { diff --git a/common/web/build.gradle.kts b/common/web/build.gradle.kts index 53c7f14b..ce59b389 100644 --- a/common/web/build.gradle.kts +++ b/common/web/build.gradle.kts @@ -7,16 +7,16 @@ plugins { } dependencies { - implementation("org.springframework.boot:spring-boot-starter-web") - implementation("org.springframework.boot:spring-boot-starter-aop") - implementation("com.fasterxml.jackson.module:jackson-module-kotlin") + api("org.springframework.boot:spring-boot-starter-web") + api("org.springframework.boot:spring-boot-starter-aop") + 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.mockk:mockk:1.14.4") - - implementation(project(":common:log")) - implementation(project(":common:utils")) - implementation(project(":common:types")) } tasks.named("bootJar") { diff --git a/service/build.gradle.kts b/service/build.gradle.kts index 6fea963e..58d8821a 100644 --- a/service/build.gradle.kts +++ b/service/build.gradle.kts @@ -5,16 +5,10 @@ plugins { } 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 implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.13") // DB - implementation("com.github.f4b6a3:tsid-creator:5.2.6") runtimeOnly("com.h2database:h2") runtimeOnly("com.mysql:mysql-connector-j") @@ -24,7 +18,6 @@ dependencies { // Logging implementation("net.logstash.logback:logstash-logback-encoder:8.1") implementation("com.github.loki4j:loki-logback-appender:2.0.0") - implementation("net.ttddyy.observation:datasource-micrometer-spring-boot:1.1.1") // Observability implementation("org.springframework.boot:spring-boot-starter-actuator") @@ -52,9 +45,6 @@ dependencies { // submodules implementation(project(":common:persistence")) - implementation(project(":common:utils")) - implementation(project(":common:types")) - implementation(project(":common:log")) implementation(project(":common:web")) }