- damo-manager Gradle 프로젝트 초기 구성
- scpdb 부재 시 fake 모드 자동 fallback - ScpEncB64/DecB64/HashB64 래핑 + 유틸 보존 - RealBridge 격리로 NoClassDefFoundError 방지 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
plugins {
|
||||
id 'java-library'
|
||||
}
|
||||
|
||||
group = 'com.eactive.apim.custom.djb'
|
||||
version = '1.0.0'
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(8)
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
stub {
|
||||
java {
|
||||
srcDirs = ['src/stub/java']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// scpdb 가짜 시그니처. 메인 컴파일 통과 전용. 최종 jar 에는 포함되지 않음.
|
||||
compileOnly sourceSets.stub.output
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
options.encoding = 'UTF-8'
|
||||
}
|
||||
|
||||
jar {
|
||||
archiveBaseName = 'damo-manager'
|
||||
archiveVersion = ''
|
||||
manifest {
|
||||
attributes(
|
||||
'Implementation-Title' : 'damo-manager',
|
||||
'Implementation-Version': project.version,
|
||||
'Built-By' : 'damo-manager gradle build'
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
// Fake 모드 스모크 검증용. 실행: ./gradlew runFakeSmoke
|
||||
tasks.register('runFakeSmoke', JavaExec) {
|
||||
group = 'verification'
|
||||
description = 'Run DamoManager main() with no scpdb on classpath (fake mode smoke test)'
|
||||
classpath = sourceSets.main.runtimeClasspath
|
||||
mainClass = 'com.eactive.apim.custom.djb.damomanager.DamoManager'
|
||||
dependsOn 'classes'
|
||||
}
|
||||
Reference in New Issue
Block a user