If you simply want to remove all the artifacts from the publish task then do it manually:
packagedArtifacts := Map.empty
Then call addArtifact
with assembly Artifact:
artifact in (Compile, assembly) ~= { art =>
art.copy(`classifier` = Some("assembly"))
}
Now if you call show packagedArtifacts
, you'll see only assembly artifact