How to define task with name "update" in prefix 'dev' and without conflict with global scope?

19 views
Skip to first unread message

Timothy Klim

unread,
Dec 1, 2013, 2:11:21 PM12/1/13
to simple-b...@googlegroups.com
Hi!

I'm trying to define task with name "update" within scope "dev" but I got this error "AttributeKey ID collisions detected for: 'update' (sbt.Task[Unit], sbt.Task[sbt.UpdateReport])" when I'm trying to use my plugin in project.

Code example:
object MyPlugin extends Plugin
{
  lazy val conf = config("dev")
  val update = taskKey[Unit]("Wow!.") in conf
  val pluginSettings = Seq(
    update := println("wow")
  )
  override lazy val settings = inConfig(conf)(pluginSettings)
}


Is it possible to define task with prefix?

Thank you.

Timothy Klim

unread,
Dec 2, 2013, 1:47:24 AM12/2/13
to simple-b...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages