2023-01-08 17:13:31 +08:00
|
|
|
/*
|
|
|
|
|
* 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.
|
2023-01-08 17:13:31 +08:00
|
|
|
*/
|
|
|
|
|
|
2020-04-27 20:32:18 +08:00
|
|
|
/*
|
2022-02-04 12:36:44 +01:00
|
|
|
* Copyright (C) 2020-2022 Lightbend Inc. <https://www.lightbend.com>
|
2020-04-27 20:32:18 +08:00
|
|
|
*/
|
|
|
|
|
|
2023-07-30 11:55:14 +02:00
|
|
|
import sbt.{ AutoPlugin, PluginTrigger, Plugins }
|
2020-04-27 20:32:18 +08:00
|
|
|
import scalafix.sbt.ScalafixPlugin
|
|
|
|
|
|
2020-12-09 15:20:13 +07:00
|
|
|
object ScalaFixExtraRulesPlugin extends AutoPlugin with ScalafixSupport {
|
2024-01-22 07:15:16 +01:00
|
|
|
override lazy val trigger: PluginTrigger = allRequirements
|
2020-04-27 20:32:18 +08:00
|
|
|
|
2024-01-22 07:15:16 +01:00
|
|
|
override lazy val requires: Plugins = ScalafixPlugin
|
2020-04-27 20:32:18 +08:00
|
|
|
|
|
|
|
|
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 ++ {
|
2021-05-25 12:50:51 +02:00
|
|
|
ThisBuild / scalafixDependencies ++= Seq(
|
2025-09-20 12:47:35 +01:00
|
|
|
"com.nequissimus" %% "sort-imports" % "0.6.1")
|
2020-04-27 20:32:18 +08:00
|
|
|
}
|
|
|
|
|
}
|