에서 여러 압축 아티팩트를 생성 나는 다음과 같은 프로젝트 구조가 있습니다한 SBT 모듈
my-project/
build.sbt
...
app/
...
config/
dev/
file1.properties
file2.properties
test/
file1.properties
file2.properties
prod/
file1.properties
file2.properties
모듈 응용 프로그램은 일부 스칼라 소스 코드를 포함하고 일반 jar 파일을 생성합니다.
문제는 config 모듈에 있습니다. 내가해야 할 일은 build.sbt에서 config에서 각 폴더를 가져 와서 내용을 별도의 zip 파일에 넣는 몇 가지 구성을 만드는 것입니다.
my-project-config-dev-1.1.zip ~>
file1.properties
file2.properties
my-project-config-uat-1.1.zip ~>
file1.properties
file2.properties
my-project-config-prod-1.1.zip ~>
file1.properties
file2.properties
1.1 프로젝트의 임의 버전 다음과 같이
결과이어야한다.
새 환경과 새 구성 파일을 추가 할 때 더 많은 zip 파일이 생성되도록 구성해야합니다. 다른 작업에서는 이러한 모든 zip 파일을 Nexus에 게시해야합니다.
제안 사항?