Setup different fix alias on different sub projects and add support to ignore dedicated packages when do scalafix.
Because some sub projects does not enable the MultiNode plugin. Add ignore packages support for scalafix.
This commit is contained in:
parent
82dea881ce
commit
746d0adb45
6 changed files with 135 additions and 46 deletions
|
|
@ -4,9 +4,8 @@ enablePlugins(UnidocRoot, TimeStampede, UnidocWithPrValidation, NoPublish, Copyr
|
|||
ScalafixIgnoreFilePlugin)
|
||||
disablePlugins(MimaPlugin)
|
||||
addCommandAlias(
|
||||
name ="fix",
|
||||
name ="fixall",
|
||||
value = ";scalafixEnable;compile:scalafix;test:scalafix;multi-jvm:scalafix;test:compile")
|
||||
|
||||
import com.typesafe.sbt.SbtMultiJvm.MultiJvmKeys.MultiJvm
|
||||
import com.typesafe.tools.mima.plugin.MimaPlugin
|
||||
import spray.boilerplate.BoilerplatePlugin
|
||||
|
|
@ -57,7 +56,7 @@ lazy val root = Project(
|
|||
.settings(unidocRootIgnoreProjects :=
|
||||
(CrossVersion.partialVersion(scalaVersion.value) match {
|
||||
case Some((2, n)) if n == 11 ⇒ aggregatedProjects // ignore all, don't unidoc when scalaVersion is 2.11
|
||||
case _ ⇒ Seq(remoteTests, benchJmh, protobuf, akkaScalaNightly, docs)
|
||||
case _ ⇒ Seq(remoteTests, benchJmh, protobuf, akkaScalaNightly, docs)
|
||||
})
|
||||
)
|
||||
.settings(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue