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。
有什么建议吗?