Created
November 19, 2015 16:42
-
-
Save JohnMurray/8e2643daac4d2c3c808e to your computer and use it in GitHub Desktop.
AutoPlugin not overriding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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