0
多個zip工件我有以下的項目結構:生產從一個SBT模塊
my-project/
build.sbt
...
app/
...
config/
dev/
file1.properties
file2.properties
test/
file1.properties
file2.properties
prod/
file1.properties
file2.properties
該模塊的應用程序包含一些階的源代碼,並且產生一個普通的jar文件。
問題出在配置模塊。我需要做的是在build.sbt中創建一些配置,它將從配置中獲取每個文件夾並將其內容放入單獨的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。
有什麼建議嗎?