From 152367cafb6155966c3109ed8d55e8bcc617210c Mon Sep 17 00:00:00 2001 From: pricelees Date: Sun, 28 Sep 2025 13:04:05 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=AA=A8=EB=93=A0=20=EB=AA=A8?= =?UTF-8?q?=EB=93=88=EC=9D=98=20dependencies=20=EC=A0=95=EB=A6=AC=20?= =?UTF-8?q?=EB=B0=8F=20jar=20=EC=84=A4=EC=A0=95=20=EC=A7=80=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/config/build.gradle.kts | 11 ----------- common/log/build.gradle.kts | 15 ++++++--------- common/persistence/build.gradle.kts | 11 +++++++++++ common/types/build.gradle.kts | 3 +++ common/utils/build.gradle.kts | 6 ++++-- common/web/build.gradle.kts | 28 ++++++++++++++++++++++++++++ service/build.gradle.kts | 8 +++----- 7 files changed, 55 insertions(+), 27 deletions(-) delete mode 100644 common/config/build.gradle.kts create mode 100644 common/types/build.gradle.kts create mode 100644 common/web/build.gradle.kts diff --git a/common/config/build.gradle.kts b/common/config/build.gradle.kts deleted file mode 100644 index e96cfeba..00000000 --- a/common/config/build.gradle.kts +++ /dev/null @@ -1,11 +0,0 @@ -plugins { - id("org.springframework.boot") - kotlin("plugin.spring") -} - -dependencies { - implementation("org.springframework.boot:spring-boot-starter-web") - implementation("com.fasterxml.jackson.module:jackson-module-kotlin") - - testImplementation("io.kotest:kotest-runner-junit5:5.9.1") -} diff --git a/common/log/build.gradle.kts b/common/log/build.gradle.kts index 5087714b..7146ccca 100644 --- a/common/log/build.gradle.kts +++ b/common/log/build.gradle.kts @@ -1,15 +1,12 @@ -plugins { - id("org.springframework.boot") - kotlin("plugin.spring") -} - 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") - implementation("net.ttddyy.observation:datasource-micrometer-spring-boot:1.1.1") + implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.20.0") + implementation("net.ttddyy.observation:datasource-micrometer-spring-boot:1.1.2") testImplementation("io.mockk:mockk:1.14.4") implementation(project(":common:utils")) } + +tasks.named("jar") { + enabled = true +} diff --git a/common/persistence/build.gradle.kts b/common/persistence/build.gradle.kts index c1afa586..fe90c4d5 100644 --- a/common/persistence/build.gradle.kts +++ b/common/persistence/build.gradle.kts @@ -1,3 +1,6 @@ +import org.gradle.kotlin.dsl.named +import org.springframework.boot.gradle.tasks.bundling.BootJar + plugins { id("org.springframework.boot") kotlin("plugin.spring") @@ -15,3 +18,11 @@ dependencies { implementation(project(":common:utils")) } + +tasks.named("bootJar") { + enabled = false +} + +tasks.named("jar") { + enabled = true +} \ No newline at end of file diff --git a/common/types/build.gradle.kts b/common/types/build.gradle.kts new file mode 100644 index 00000000..469d6467 --- /dev/null +++ b/common/types/build.gradle.kts @@ -0,0 +1,3 @@ +tasks.named("jar") { + enabled = true +} \ No newline at end of file diff --git a/common/utils/build.gradle.kts b/common/utils/build.gradle.kts index ad519ea1..d725bc73 100644 --- a/common/utils/build.gradle.kts +++ b/common/utils/build.gradle.kts @@ -1,5 +1,7 @@ dependencies { implementation("org.slf4j:slf4j-api:2.0.17") +} - testImplementation("ch.qos.logback:logback-classic:1.5.18") -} \ No newline at end of file +tasks.named("jar") { + enabled = true +} diff --git a/common/web/build.gradle.kts b/common/web/build.gradle.kts new file mode 100644 index 00000000..53c7f14b --- /dev/null +++ b/common/web/build.gradle.kts @@ -0,0 +1,28 @@ +import org.gradle.kotlin.dsl.named +import org.springframework.boot.gradle.tasks.bundling.BootJar + +plugins { + id("org.springframework.boot") + kotlin("plugin.spring") +} + +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") + + 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") { + enabled = false +} + +tasks.named("jar") { + enabled = true +} diff --git a/service/build.gradle.kts b/service/build.gradle.kts index 1dc77c5b..6fea963e 100644 --- a/service/build.gradle.kts +++ b/service/build.gradle.kts @@ -11,7 +11,7 @@ dependencies { implementation("org.springframework.boot:spring-boot-starter-validation") // API docs - implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.9") + implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.13") // DB implementation("com.github.f4b6a3:tsid-creator:5.2.6") @@ -22,7 +22,6 @@ dependencies { implementation("io.jsonwebtoken:jjwt:0.12.6") // Logging - implementation("io.github.oshai:kotlin-logging-jvm:7.0.3") 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") @@ -35,7 +34,6 @@ dependencies { // Kotlin implementation("org.jetbrains.kotlin:kotlin-reflect") - implementation("io.github.oshai:kotlin-logging-jvm:7.0.3") // Test testImplementation("org.springframework.boot:spring-boot-starter-test") @@ -53,13 +51,13 @@ dependencies { implementation("org.apache.poi:poi-ooxml:5.2.3") // submodules - implementation(project(":common:config")) implementation(project(":common:persistence")) implementation(project(":common:utils")) implementation(project(":common:types")) implementation(project(":common:log")) + implementation(project(":common:web")) } -tasks.jar { +tasks.named("jar") { enabled = false }