Skip to content

Commit

Permalink
switch to NoPublishPlugin to actually skip MiMa in unpublished modules (
Browse files Browse the repository at this point in the history
  • Loading branch information
bpholt committed Jul 15, 2022
1 parent 228e63e commit cb1bb6d
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -160,27 +160,27 @@ lazy val `scalafix-rules` = (project in file("scalafix/rules")).settings(
)
)

lazy val `scalafix-input` = (project in file("scalafix/input")).settings(
publish / skip := true,
libraryDependencies ++= Seq(
"io.catbird" %% "catbird-util" % "21.8.0"
),
scalacOptions ~= { _.filterNot(_ == "-Xfatal-warnings") },
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision
)
lazy val `scalafix-input` = (project in file("scalafix/input"))
.settings(
libraryDependencies ++= Seq(
"io.catbird" %% "catbird-util" % "21.8.0"
),
scalacOptions ~= { _.filterNot(_ == "-Xfatal-warnings") },
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision
)
.enablePlugins(NoPublishPlugin)

lazy val `scalafix-output` = (project in file("scalafix/output"))
.settings(
githubWorkflowArtifactUpload := false,
publish / skip := true,
scalacOptions ~= { _.filterNot(_ == "-Xfatal-warnings") }
)
.dependsOn(util)
.enablePlugins(NoPublishPlugin)

lazy val `scalafix-tests` = (project in file("scalafix/tests"))
.settings(
publish / skip := true,
libraryDependencies += {
import _root_.scalafix.sbt.BuildInfo.scalafixVersion
("ch.epfl.scala" % "scalafix-testkit" % scalafixVersion % Test).cross(CrossVersion.full)
Expand All @@ -192,4 +192,7 @@ lazy val `scalafix-tests` = (project in file("scalafix/tests"))
scalafixTestkitInputScalaVersion := (`scalafix-input` / Compile / scalaVersion).value
)
.dependsOn(`scalafix-rules`)
.enablePlugins(ScalafixTestkitPlugin)
.enablePlugins(
ScalafixTestkitPlugin,
NoPublishPlugin
)

0 comments on commit cb1bb6d

Please sign in to comment.