Skip to content

Commit

Permalink
Change the name to BuildInfoKey.outOfGraphUnsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand committed Feb 14, 2018
1 parent c83a2d3 commit c090dd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/scala/sbtbuildinfo/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ package object sbtbuildinfo {
type BuildInfoKey = BuildInfoKey.Entry[_]
object BuildInfoKey {
implicit def setting[A](key: SettingKey[A]): Entry[A] = Setting(key)
@deprecated("Explicitly wrap in BuildInfoKey.of/ofN. Or if out-of-graph execution is required use BuildInfoKey.outOfGraphTaskExecution", "0.7.1")
@deprecated("Explicitly wrap in BuildInfoKey.of/ofN. Or if out-of-graph execution is required use BuildInfoKey.outOfGraphUnsafe", "0.7.1")
implicit def task[A](key: TaskKey[A]): Entry[A] = Task(key)
implicit def taskValue[A: Manifest](task: sbt.Task[A]): Entry[A] = TaskValue(task)
implicit def constant[A: Manifest](tuple: (String, A)): Entry[A] = Constant(tuple)

def apply[A](key: SettingKey[A]): Entry[A] = Setting(key)
@deprecated("Explicitly wrap in BuildInfoKey.of/ofN. Or if out-of-graph execution is required use BuildInfoKey.outOfGraphTaskExecution", "0.7.1")
@deprecated("Explicitly wrap in BuildInfoKey.of/ofN. Or if out-of-graph execution is required use BuildInfoKey.outOfGraphUnsafe", "0.7.1")
def apply[A](key: TaskKey[A]): Entry[A] = Task(key)
def apply[A: Manifest](tuple: (String, A)): Entry[A] = Constant(tuple)
def map[A, B: Manifest](from: Entry[A])(fun: ((String, A)) => (String, B)): Entry[B] =
Expand All @@ -20,7 +20,7 @@ package object sbtbuildinfo {
def of(x: Any): BuildInfoKey = macro BuildInfoKeyMacros.ofImpl
def ofN(xs: Any*): Seq[BuildInfoKey] = macro BuildInfoKeyMacros.ofNImpl

def outOfGraphTaskExecution[A](key: TaskKey[A]): Entry[A] = Task(key)
def outOfGraphUnsafe[A](key: TaskKey[A]): Entry[A] = Task(key)

private[sbtbuildinfo] final case class Setting[A](scoped: SettingKey[A]) extends Entry[A] {
def manifest = scoped.key.manifest
Expand Down

0 comments on commit c090dd5

Please sign in to comment.