import sbt.*

object FooPlugin extends AutoPlugin {
  override def trigger = noTrigger
  object autoImport {
    val myTask = taskKey[Unit]("My task")
  }

  import autoImport._

  override def buildSettings = super.buildSettings ++ Seq(
    myTask := Def.uncached(println("Called my task"))
  )
}
