diff --git a/build.gradle b/build.gradle index c712469..63f5ede 100644 --- a/build.gradle +++ b/build.gradle @@ -94,6 +94,13 @@ dependencies { /* Custom Libs */ implementation fileTree(dir: 'libs', include: ['*.jar']) + /* 외부 provided 라이브러리 (예: Tomcat lib/damo-manager.jar). compileOnly 라 WAR 미포함. + CI 는 Jenkinsfile EXT_LIB_DIR(-PextLibDir) 로 경로 주입, 로컬은 미설정 시 가드로 스킵. */ + def extLibDir = project.findProperty('extLibDir') ?: System.getenv('EXT_LIB_DIR') + if (extLibDir && file(extLibDir).isDirectory()) { + compileOnly fileTree(dir: extLibDir, include: ['*.jar']) + } + //implementation "org.dom4j:dom4j:2.1.3" //implementation "com.rabbitmq:amqp-client:3.6.6"