chore: acquire-core migration monorepo (legacy C + Spring Boot target skeleton)
Some checks failed
ci / build (push) Failing after 2s
Some checks failed
ci / build (push) Failing after 2s
TxCore/ECPG legacy 매입·정산 C 슬라이스(빌드검증) + Spring Boot 멀티모듈 골격(mvn test green) + MIGRATION.md 전환룰 + CI(boot 빌드).
This commit is contained in:
commit
ff0b0b60a2
31 changed files with 2208 additions and 0 deletions
47
boot/modules/acquiring/pom.xml
Normal file
47
boot/modules/acquiring/pom.xml
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>com.klaro.acquirecore</groupId>
|
||||
<artifactId>acquire-core-boot</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>acquiring</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<name>acquiring</name>
|
||||
<description>매입(acquiring) 업무 모듈 — common-framework 에 의존하는 Spring Boot 앱</description>
|
||||
|
||||
<dependencies>
|
||||
<!-- 2단계 의존: 공통 프레임워크가 먼저 배치되어야 한다 -->
|
||||
<dependency>
|
||||
<groupId>com.klaro.acquirecore</groupId>
|
||||
<artifactId>common-framework</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
package com.klaro.acquirecore.acquiring;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/**
|
||||
* 매입(acquiring) 업무 모듈 부트스트랩.
|
||||
*
|
||||
* <p>레거시 {@code app/online/server_main.c} (tpsvrinit 서비스 등록) 의 Spring 대체.
|
||||
* common-framework(TxCore 대체) 패키지를 컴포넌트 스캔에 포함해 {@code MessageCodec}
|
||||
* 등 프레임워크 빈을 함께 올린다.
|
||||
*/
|
||||
@SpringBootApplication(scanBasePackages = {
|
||||
"com.klaro.acquirecore.acquiring",
|
||||
"com.klaro.acquirecore.framework"
|
||||
})
|
||||
public class AcquiringApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(AcquiringApplication.class, args);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
spring:
|
||||
application:
|
||||
name: acquiring
|
||||
# 스켈레톤 단계에서는 데이터소스를 배선하지 않는다(스모크 테스트가 Postgres 불필요).
|
||||
# 매입 DBIO(purchase_dbio.pgc → MyBatis/Spring Data) 이식 시 datasource 를 추가한다.
|
||||
|
||||
logging:
|
||||
level:
|
||||
com.klaro.acquirecore: INFO
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
package com.klaro.acquirecore.acquiring;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* 스켈레톤 스모크 테스트.
|
||||
*
|
||||
* <p>DB/컨텍스트 없이 순수 JUnit 으로 빌드 파이프라인(컴파일 + `mvn test`)이
|
||||
* 초록인지만 증명한다. common-framework 이식이 진행되면 실제 유스케이스
|
||||
* 테스트로 대체된다.
|
||||
*/
|
||||
class SmokeTest {
|
||||
|
||||
@Test
|
||||
void skeletonBuilds() {
|
||||
assertTrue(true, "Spring Boot 매입 모듈 스켈레톤이 빌드된다");
|
||||
}
|
||||
}
|
||||
Reference in a new issue