Skip to content

Instantly share code, notes, and snippets.

@stevebakh
Created May 1, 2018 09:43
Show Gist options
  • Select an option

  • Save stevebakh/3010bf49a28d000941f4515e1bb78317 to your computer and use it in GitHub Desktop.

Select an option

Save stevebakh/3010bf49a28d000941f4515e1bb78317 to your computer and use it in GitHub Desktop.
Make one sbt module depend on a task in another module (example: one module depends on assembly in another)
lazy val firstmodule = ...
.settings(
assemblyJarName in assembly := "some.fat.jar",
assemblyOutputPath in assembly := file("secondmodule/lib") / (assemblyJarName in assembly).value)
lazy val secondmodule = ...
.settings(
test in IntegrationTest := (test in IntegrationTest).dependsOn(assembly in firstmodule).value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment