behavior-identical 확인된 4개 플레인 클래스를 com.urpsys.common 으로 단일화하고
5개 모듈이 implementation project(':common') 으로 참조하도록 전환.
추출(사본 대조 후 동작 등가 확정):
- crypto/Aes256Cipher (5벌→1): 암호로직 전 사본 동일. front 키스토어 상이(UrpSysKeyMng)
→ 생성자 파라미터화(무인자=UrpSystem 기본, front EncryptConfig 만 명시).
미사용 dead 변수(activeProfile) 제거로 CommonUtil 의존 인라인.
- exception/CustomException (5벌→1): 전 사본 로직 동일(주석·brace 스타일 차이만).
- util/ConvertUtils (api·front→1): 동일. batch 는 LinkedHashMap 분기(기능 상이) → batch 로컬 유지.
- util/DataSourceUtil (api·auth·batch·datatrans→1): 로직 동일(미사용 import 차이만).
모듈 잔류(특화·안전상 미추출, 사유 기록):
- config/EncryptConfig·PasswordEncoderConfig(@Configuration): 모듈별 @ComponentScan 이
자기 패키지 한정(api·auth·datatrans·front) → common 이관 시 빈 미등록. EncryptConfig 는
front 키스토어 특화도 겸함. 각 모듈 로컬 유지하되 common Aes256Cipher 참조로 전환.
- CommonUtil·RestApiCallUtil·HtmlEmailUtil: 사본 간 실기능 분기 大(73~293라인) → 강제 초집합 시
동작 변경 위험 → 모듈 로컬 유지.
빌드: common·auth·api·batch·datatrans·front compileJava 전부 SUCCESS(--rerun-tasks).
인코딩: 소스 UTF-8, 루트 subprojects JavaCompile encoding=UTF-8 명시(플랫폼 CP949 회귀 방지).
Bean 이름(aes256Cipher)·프로파일·포트 불변. 시크릿 미기재.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
95 lines
3.0 KiB
Groovy
95 lines
3.0 KiB
Groovy
plugins
|
|
{
|
|
id 'org.springframework.boot'
|
|
id 'io.spring.dependency-management'
|
|
id 'org.asciidoctor.convert'
|
|
id 'java'
|
|
id 'war'
|
|
}
|
|
|
|
group = 'com.urpsys'
|
|
version = '1.0.0-SNAPSHOT'
|
|
sourceCompatibility = '11'
|
|
|
|
configurations
|
|
{
|
|
compileOnly
|
|
{
|
|
extendsFrom annotationProcessor
|
|
}
|
|
}
|
|
|
|
// repositories: 루트 build.gradle subprojects 로 승격 (INTEGRATION_DESIGN §2)
|
|
|
|
ext
|
|
{
|
|
set('snippetsDir', file("build/generated-snippets"))
|
|
}
|
|
|
|
dependencies
|
|
{
|
|
implementation project(':common')
|
|
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-batch'
|
|
implementation 'org.springframework.boot:spring-boot-starter-cache'
|
|
implementation 'org.springframework.boot:spring-boot-starter-integration'
|
|
implementation 'org.springframework.boot:spring-boot-starter-mail'
|
|
implementation 'org.springframework.boot:spring-boot-starter-quartz'
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
|
|
implementation ('org.springframework.boot:spring-boot-starter-web')
|
|
{
|
|
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
|
|
}
|
|
|
|
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.2' // DB 처리
|
|
|
|
// oracle connect lib
|
|
// implementation group: 'com.oracle.database.jdbc', name: 'ojdbc8', version: '21.8.0.0'
|
|
// runtimeOnly 'org.mariadb.jdbc:mariadb-java-client' // mariadb 연결처리
|
|
implementation 'com.mysql:mysql-connector-j:8.2.0'
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-undertow'
|
|
implementation 'org.springframework.boot:spring-boot-starter-webflux'
|
|
implementation 'org.apache.tomcat.embed:tomcat-embed-jasper'
|
|
|
|
implementation 'org.apache.commons:commons-lang3:3.12.0'
|
|
|
|
compileOnly 'org.projectlombok:lombok:1.18.20'
|
|
annotationProcessor 'org.projectlombok:lombok:1.18.20'
|
|
testCompileOnly 'org.projectlombok:lombok:1.18.20'
|
|
testAnnotationProcessor 'org.projectlombok:lombok:1.18.20'
|
|
|
|
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
|
|
|
implementation 'commons-codec:commons-codec:1.15' // 암호화처리
|
|
implementation 'org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4.1:1.16' // sql log 처리
|
|
|
|
|
|
implementation 'org.springframework.security.oauth:spring-security-oauth2:2.3.8.RELEASE'
|
|
implementation group: 'org.glassfish.jaxb', name: 'jaxb-runtime', version: '2.3.3' // javax.xml.bind.JAXBException 오류시 추가
|
|
implementation 'org.springframework.security:spring-security-jwt:1.0.9.RELEASE'
|
|
implementation 'com.konghq:unirest-java:3.7.02' // http 통신을 쉽게 하기 위함
|
|
|
|
// 2023.07.31 나혁제 swagger 추가 처리
|
|
implementation 'io.springfox:springfox-swagger2:2.9.2'
|
|
implementation 'io.springfox:springfox-swagger-ui:2.9.2'
|
|
|
|
|
|
}
|
|
|
|
test
|
|
{
|
|
outputs.dir snippetsDir
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
asciidoctor
|
|
{
|
|
inputs.dir snippetsDir
|
|
dependsOn test
|
|
}
|
|
|