Skip to content

Commit

Permalink
Merge pull request #1665 from bjaglin/skippackaging
Browse files Browse the repository at this point in the history
skip src and doc packaging when publishing locally
  • Loading branch information
bjaglin authored Sep 10, 2022
2 parents f7944df + 966e325 commit 5d55ab4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions project/ScalafixBuild.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Dependencies._
import sbt._
import sbt.Classpaths
import sbt.Keys._
import sbt.nio.Keys._
import sbt.plugins.JvmPlugin
Expand Down Expand Up @@ -209,6 +210,11 @@ object ScalafixBuild extends AutoPlugin with GhpagesKeys {
case _ => Seq()
}
},
// Don't package sources & docs when publishing locally as it adds a significant
// overhead when testing because of publishLocalTransitive. Tweaking publishArtifact
// would more readable, but it would also affect remote (sonatype) publishing.
publishLocal / packagedArtifacts :=
Classpaths.packaged(Seq(Compile / packageBin)).value,
publishTo := Some {
if (isSnapshot.value) Opts.resolver.sonatypeSnapshots
else Opts.resolver.sonatypeStaging
Expand Down

0 comments on commit 5d55ab4

Please sign in to comment.