These are chat archives for sbt/sbt-native-packager

24th
Sep 2015
Maxime Bury
@Bowbaq
Sep 24 2015 19:31
Hi
I'm trying to use the tasks from sbt/sbt-native-packager#632, and my project has a couple sub-projects
I gather that to share the tasks between sub-projects, they must be in a .scala file under the top-level project/
Maxime Bury
@Bowbaq
Sep 24 2015 19:36
This message was deleted
I'm getting the following compilation errors:
[error] /Users/bowbaq/Dropbox/Originate/somatix/somatix/project/Tasks.scala:14: not found: value stage
[error]     val dockerStageValue = (stage in Docker).value
[error]                             ^
[error] /Users/bowbaq/Dropbox/Originate/somatix/somatix/project/Tasks.scala:30: not found: value stagingDirectory
[error]     val dockerStagingDirectory: File = (stagingDirectory in Docker).value
Which I'm not sure how to resolve. Help would be much appreciated
Nepomuk Seiler
@muuki88
Sep 24 2015 20:50

@chrischaulk with 1.0.0 we try to use AutoPlugin for all these configuration stuff. See https://github.com/sbt/sbt-native-packager/blob/master/src/main/scala/com/typesafe/sbt/packager/debian/DebianPlugin.scala#L353-L356

So

enablePlugins(DebianDeployPlugin)
@Bowbaq you need to import all the necessary stuff
import com.typesafe.sbt.packager.Keys._