A relaxed chat room about sbt (That interactive build tool). For getting help on sbt, we encourage people to document it on Stackoverflow or subscribing to Lightbend subscription.
-Xplugin:opt=value
scalacOption
key in sbt
sbt-native-packager
but I fell my question is general enough to ask it here rather than on the plugin's channel.DockerPlugin
from sbt-native-packager
and has two Configuration
s : Local
and Jenkins
.version
in both configurations, but I fail to achieve that.
dockerImageCreationTask := (publishLocal in Docker)
where Docker
is a Configuration
Configuration
from another one ?
val Local = config("local") extend Docker
but I'm not sure I understand the semantic
version in Docker := (version in Jenkins).value
extend
mechanism is about default values, i.e. if you haven't explicity told sbt how to handle that key, it'll look up the "configuration hierarchy" for a value rather than just erroring out
version in Docker in Local := "local", version in Docker in Jenkins := (version in ThisProject).value
,
docker:publishLocal
triggers the construction of a docker image rather than publishing jars to the local ivy store. What I would like to have is local:publishLocal
doing the same thing but with an altered value for version
Jenkins
configuration and let jenkins use the regular docker:publishLocal
)
Hey, could someone help me configure a sequential custom sbt task? I'm trying to set up a task that will run assembly
from sbt-assembly on all the modules in the project. It should then execute a shell script, passing the file names from assembly
as parameters. This is a pseudo code example of what I'm trying to achieve:
lazy val listOfFiles = taskKey[Unit]("Run script passing jar file names as parameters.")
listOfFiles := {
val files = List[File]()
files :+ assembly
// run script passing file names as parameters
}
Is this type of thing possible to do?
assembly
but the problem is that this task is parallelised when I call it in my custom task meaning that my task becomes parallelised. Is there a way to define this type of task to be executed in a sequential way?