Skip to content

Commit

Permalink
convert dockerVersion from a setting to a task (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwickern authored and muuki88 committed Oct 27, 2017
1 parent f1670d5 commit af21f71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ object DockerSpotifyClientPlugin extends AutoPlugin {
}
}

def dockerServerVersion: Def.Initialize[Option[DockerVersion]] = Def.setting {
def dockerServerVersion: Def.Initialize[Task[Option[DockerVersion]]] = Def.task {
val docker: DockerClient = DefaultDockerClient.fromEnv().build()
DockerVersion.parse(docker.version().version())
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/com/typesafe/sbt/packager/docker/Keys.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ trait DockerKeys {
"Docker CMD. Used together with dockerEntrypoint. Arguments passed in exec form"
)
val dockerExecCommand = SettingKey[Seq[String]]("dockerExecCommand", "The shell command used to exec Docker")
val dockerVersion = SettingKey[Option[DockerVersion]]("dockerVersion", "The docker server version")
val dockerVersion = TaskKey[Option[DockerVersion]]("dockerVersion", "The docker server version")
val dockerBuildOptions = SettingKey[Seq[String]]("dockerBuildOptions", "Options used for the Docker build")
val dockerBuildCommand = SettingKey[Seq[String]]("dockerBuildCommand", "Command for building the Docker image")
val dockerLabels = SettingKey[Map[String, String]]("dockerLabels", "Labels applied to the Docker image")
Expand Down

0 comments on commit af21f71

Please sign in to comment.