Skip to content

Commit

Permalink
fix: create accessible gatlingScalafixWriteTask
Browse files Browse the repository at this point in the history
Motivation:
Weird error when inspecting a task in sbt.

Modifications:
 * Use a public task instead of a private local one.

Result:
No more error in sbt when inspecting.
User may change this task implementation
  • Loading branch information
Isammoc committed Oct 29, 2023
1 parent 8e79699 commit 921d108
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ import sbt.{ Def, _ }
object GatlingAutomatedScalafixPlugin extends AutoPlugin {
override def requires: Plugins = ScalafixPlugin && GatlingBuildConfigPlugin

private val gatlingScalafixWriteTask = TaskKey.local[File]

trait GatlingAutomatedScalafixKeys {
val gatlingScalafixConfigFile = settingKey[File]("Location of the scalafix configuration file")
val gatlingScalafixWriteTask = taskKey[File]("write scalafix file")

def automateScalafixBeforeCompile(configurations: Configuration*): Seq[Setting[_]] =
configurations.toSeq.flatMap(
Expand Down

0 comments on commit 921d108

Please sign in to comment.