Closed guizmaii closed 2 years ago
We have some definitions for our Docker build:
object BuildHelper { lazy val dockerSettings = Seq( Docker / maintainer := "...", Docker / daemonUser := "...", Docker / dockerRepository := Some("..."), Docker / packageName := packageName.value, dockerUpdateLatest := false, dockerExposedPorts := Seq(8080), dockerBaseImage := "ubuntu:latest", Docker / version := s"$release-$version", // this is the line 63 that sbt talks about ) }
I just updated to the latest version of sbt-native-packager and since the update sbt tells me this:
[warn] there's a key that's not used by any other settings/tasks: [warn] [warn] * app-build / Docker / version [warn] +- BuildHelper.scala:63
I had a quick look at the changes between 1.9.4 and 1.9.5. It could be because of this change: https://github.com/sbt/sbt-native-packager/compare/v1.9.4...v1.9.5#diff-b866751bc91854625b6a5d821ae6a4df02736ceb3581779d81319caee1d9d2cdR100
1.9.4
1.9.5
This Option((version in Docker).value) piece of code have been changed for Option((version).value). Should it be Option((Docker / version).value) instead?
Option((version in Docker).value)
Option((version).value)
Option((Docker / version).value)
cc @frankivo
Expected behaviour
We have some definitions for our Docker build:
I just updated to the latest version of sbt-native-packager and since the update sbt tells me this:
I had a quick look at the changes between
1.9.4
and1.9.5
. It could be because of this change: https://github.com/sbt/sbt-native-packager/compare/v1.9.4...v1.9.5#diff-b866751bc91854625b6a5d821ae6a4df02736ceb3581779d81319caee1d9d2cdR100This
Option((version in Docker).value)
piece of code have been changed forOption((version).value)
. Should it beOption((Docker / version).value)
instead?cc @frankivo