scala - SBT task executed twice -
i trying create custom sbt task. problem task executed twice , output of tasks interleaved, suggests parallel execution. minified example of task creating:
theproject/project/moduletemplate.scala
:
object moduletemplate extends build { lazy val createmodule = inputkey[unit]("create new module") override def settings = super.settings ++ seq( createmodule := { println("creating module...") println("interleaved") } ) }
the output of executing task in sbt console (play createmodule
):
creating module bla... interleaved creating module bla... interleaved
any idea causing this? in advance
apparently there wrong either project files intellij or sbt files messing task execution. anyways, deleted files generated sbt , intellij , problem solved.
Comments
Post a Comment