diff --git a/axhub-tool-core/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/util/PodScaffolder.java b/axhub-tool-core/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/util/PodScaffolder.java index abc2054..92b5ae4 100644 --- a/axhub-tool-core/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/util/PodScaffolder.java +++ b/axhub-tool-core/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/util/PodScaffolder.java @@ -109,7 +109,7 @@ public class PodScaffolder { if (Files.exists(settingsPath)) { String settings = Files.readString(settingsPath); if (!settings.contains("include '" + moduleName + "'")) { - Files.writeString(settingsPath, "\\ninclude '" + moduleName + "'\\n", StandardOpenOption.APPEND); + Files.writeString(settingsPath, System.lineSeparator() + "include '" + moduleName + "'" + System.lineSeparator(), StandardOpenOption.APPEND); } } @@ -141,7 +141,7 @@ public class PodScaffolder { - GLOW_COMMUNICATION_EAI_HOST=tcp://gateway - GLOW_COMMUNICATION_EAI_PORT=8081 """.formatted(serviceName, moduleName, portStr, portStr, serviceName, portStr); - Files.writeString(dockerComposePath, "\\n" + newService, StandardOpenOption.APPEND); + Files.writeString(dockerComposePath, System.lineSeparator() + newService, StandardOpenOption.APPEND); } } diff --git a/payment/Dockerfile b/axhub-tool-payment/Dockerfile similarity index 58% rename from payment/Dockerfile rename to axhub-tool-payment/Dockerfile index 933d08d..04736ff 100644 --- a/payment/Dockerfile +++ b/axhub-tool-payment/Dockerfile @@ -1,4 +1,4 @@ FROM eclipse-temurin:21-jdk-alpine WORKDIR /app -COPY build/libs/payment-0.0.1-SNAPSHOT.jar app.jar +COPY build/libs/axhub-tool-payment-0.0.1-SNAPSHOT.jar app.jar ENTRYPOINT ["java", "-jar", "app.jar"] diff --git a/payment/build.gradle b/axhub-tool-payment/build.gradle similarity index 100% rename from payment/build.gradle rename to axhub-tool-payment/build.gradle diff --git a/payment/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/payment/PaymentToolApplication.java b/axhub-tool-payment/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/payment/PaymentToolApplication.java similarity index 100% rename from payment/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/payment/PaymentToolApplication.java rename to axhub-tool-payment/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/payment/PaymentToolApplication.java diff --git a/payment/src/main/resources/application-local.yml b/axhub-tool-payment/src/main/resources/application-local.yml similarity index 66% rename from payment/src/main/resources/application-local.yml rename to axhub-tool-payment/src/main/resources/application-local.yml index b58f5a9..0b70954 100644 --- a/payment/src/main/resources/application-local.yml +++ b/axhub-tool-payment/src/main/resources/application-local.yml @@ -1,6 +1,6 @@ spring: application: - name: payment + name: axhub-tool-payment config: import: "classpath:config/application-glow-local.yml" @@ -9,4 +9,4 @@ server: axhub: tool: - url: "http://payment:8085" + url: "http://tool-payment:8085" diff --git a/docker-compose.yml b/docker-compose.yml index 13f8f33..a68b95c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -86,9 +86,9 @@ services: - GLOW_COMMUNICATION_EXTMCI_PORT=8081 - GLOW_COMMUNICATION_EAI_HOST=tcp://gateway - GLOW_COMMUNICATION_EAI_PORT=8081 -\n payment: + tool-payment: build: - context: ./payment + context: ./axhub-tool-payment ports: - "8085:8085" depends_on: @@ -99,7 +99,7 @@ services: - SPRING_REDIS_PORT=6379 - SPRING_DATA_REDIS_PORT=6379 - AXHUB_GATEWAY_URL=http://gateway:8081 - - AXHUB_TOOL_URL=http://payment:8085 + - AXHUB_TOOL_URL=http://tool-payment:8085 - GLOW_COMMUNICATION_MCI_HOST=http://gateway - GLOW_COMMUNICATION_MCI_PORT=8081 - GLOW_COMMUNICATION_EXTMCI_HOST=http://gateway diff --git a/settings.gradle b/settings.gradle index 0c2fc85..c7922b5 100644 --- a/settings.gradle +++ b/settings.gradle @@ -6,4 +6,4 @@ include 'axhub-tool-core' include 'axhub-tool-sms' include 'axhub-tool-email' include 'axhub-tool-other' -\ninclude 'payment'\n \ No newline at end of file +include 'axhub-tool-payment' \ No newline at end of file