Skip to content

Instantly share code, notes, and snippets.

@JohnMurray
Created November 19, 2015 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnMurray/8e2643daac4d2c3c808e to your computer and use it in GitHub Desktop.
Save JohnMurray/8e2643daac4d2c3c808e to your computer and use it in GitHub Desktop.
AutoPlugin not overriding
import sbt._
import sbt.Keys._
object MyPlugin extends AutoPlugin {
override lazy val projectSettings: Seq[Setting[_]] = Seq(
resourceDirectory in Compile := file("/tmp")
)
}
object MyBuild extends Build {
lazy val myProject = Project("my-project", file("my-project")).enablePlugins(MyPlugin)
lazy val root = Project("root", file(".")).aggregate(myProject)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment