pekko/project/ScalaFixExtraRulesPlugin.scala

29 lines
916 B
Scala
Raw Normal View History

/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* license agreements; and to You under the Apache License, version 2.0:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
2023-06-22 14:19:26 +01:00
* This file is part of the Apache Pekko project, which was derived from Akka.
*/
/*
2022-02-04 12:36:44 +01:00
* Copyright (C) 2020-2022 Lightbend Inc. <https://www.lightbend.com>
*/
import sbt.{ AutoPlugin, PluginTrigger, Plugins }
import scalafix.sbt.ScalafixPlugin
object ScalaFixExtraRulesPlugin extends AutoPlugin with ScalafixSupport {
2024-01-22 07:15:16 +01:00
override lazy val trigger: PluginTrigger = allRequirements
2024-01-22 07:15:16 +01:00
override lazy val requires: Plugins = ScalafixPlugin
import sbt._
import scalafix.sbt.ScalafixPlugin.autoImport.scalafixDependencies
2024-01-22 07:15:16 +01:00
override lazy val projectSettings: Seq[Def.Setting[_]] = super.projectSettings ++ {
ThisBuild / scalafixDependencies ++= Seq(
"com.nequissimus" %% "sort-imports" % "0.6.1")
}
}