Skip to content

Instantly share code, notes, and snippets.

@jeffreyolchovy
Created May 16, 2017 11:17
Show Gist options
  • Select an option

  • Save jeffreyolchovy/9c9a4173b892b38b6c32b0183005cf12 to your computer and use it in GitHub Desktop.

Select an option

Save jeffreyolchovy/9c9a4173b892b38b6c32b0183005cf12 to your computer and use it in GitHub Desktop.
package sbttweeter
import sbt._
import sbt.Keys._
object TweeterKeys {
/* Instantiate your setting, task, and input task keys here */
}
object TweeterPlugin extends AutoPlugin {
object autoImport {
/* Whatever you want brought into scope automatically for users of your plugin */
val TweeterKeys = sbttweeter.TweeterKeys
}
override def projectSettings = Seq(
/* Whatever settings/behavior you want to make available to the project that includes your plugin */
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment