I am trying to compile and run scala code that generates a file in SBT (in this case its swagger file).
The following sbt is executed. The bank is built and executed, and the swagger.zip file that executes is created in the target directory. However, I cannot get the zip file to be published in my artificial repo, as my standard jar files did.
Any idea on what I am missing?
publishArtifact in (Compile, packageBin) := false
publishArtifact in run := true
val myZipTask = taskKey[File]("swagger-zip")
myZipTask := {
file("swagger.zip")
}
addArtifact(Artifact("swagger", "zip", "zip"), myZipTask )
source
share