Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于发布,我使用的是 sbt-assembly,但问题是publish它发布了所有我不需要的工件,我只是用组装任务生成的那个。如何从packagedArtifacts设置中删除伪影?
publish
packagedArtifacts
如果您只是想从发布任务中删除所有工件,请手动执行:
packagedArtifacts := Map.empty
然后addArtifact用组装工件调用:
addArtifact
artifact in (Compile, assembly) ~= { art => art.copy(`classifier` = Some("assembly")) }
现在如果你打电话show packagedArtifacts,你只会看到组装工件
show packagedArtifacts