I've written autoPlugin like so
object ThriftIfaceSbt extends AutoPlugin {
override def projectSettings = {
Seq(
crossVersion := {
println(s"Init ThriftIfaceSbt ${name.value}")
CrossVersion.Disabled
},
autoScalaLibrary := false,
resourceDirectories in Compile += baseDirectory.value / "src" / "main" / "thrift"
)
}
}
Then i publishLocal and try it in my build.sbt
lazy val myProject = (project in file("a")).enablePlugins(ThriftIfaceSbt)
That plugin doesn't get applied to project.. i don't understand why.
It it possible that SBT silently ignores my plugin?