From 7b020fc6d44bc60fea452fd09d4dec744fd86139 Mon Sep 17 00:00:00 2001 From: gewuyou Date: Wed, 28 May 2025 23:51:49 +0800 Subject: [PATCH] refactor(build): Refactored module definition and unified internationalized object naming - Refactored Webmvc object to define versions and log starters separately - Add DTO and Validation module definitions - Remove Common objects, possibly configured separately elsewhere - Unified I18n object naming to improve code consistency --- buildSrc/src/main/kotlin/Modules.kt | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/buildSrc/src/main/kotlin/Modules.kt b/buildSrc/src/main/kotlin/Modules.kt index 73518c1..b9ef2d9 100644 --- a/buildSrc/src/main/kotlin/Modules.kt +++ b/buildSrc/src/main/kotlin/Modules.kt @@ -9,20 +9,16 @@ object Modules { object Webmvc { const val STARTER = ":forgeboot-webmvc-spring-boot-starter" - const val VERSION_STARTER = ":forgeboot-webmvc-spring-boot-starter:forgeboot-webmvc-version-spring-boot-starter" - const val LOGGER_STARTER = ":forgeboot-webmvc-spring-boot-starter:forgeboot-webmvc-logger-spring-boot-starter" + const val DTO = ":forgeboot-webmvc-spring-boot-starter:forgeboot-webmvc-dto" + const val VALIDATION = ":forgeboot-webmvc-spring-boot-starter:forgeboot-webmvc-validation" + const val VERSION = ":forgeboot-webmvc-spring-boot-starter:forgeboot-webmvc-version-spring-boot-starter" + const val LOGGER = ":forgeboot-webmvc-spring-boot-starter:forgeboot-webmvc-logger-spring-boot-starter" } object Core{ const val ROOT = ":forgeboot-core" const val EXTENSION = ":forgeboot-core:forgeboot-core-extension" } - object Common { - const val ROOT = ":forgeboot-common" - const val RESULT = ":forgeboot-common:forgeboot-common-result" - const val RESULT_IMPL = ":forgeboot-common:forgeboot-common-result:forgeboot-common-result-impl" - const val RESULT_API = ":forgeboot-common:forgeboot-common-result:forgeboot-common-result-api" - } - object I18N { + object I18n { const val STARTER = ":forgeboot-i18n-spring-boot-starter" const val API = ":forgeboot-i18n-spring-boot-starter:forgeboot-i18n-api" const val IMPL = ":forgeboot-i18n-spring-boot-starter:forgeboot-i18n-impl"