Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a task to generate a jar for all the dependencies #4

Closed
ijuma opened this issue Jul 18, 2011 · 2 comments
Closed

Provide a task to generate a jar for all the dependencies #4

ijuma opened this issue Jul 18, 2011 · 2 comments

Comments

@ijuma
Copy link

ijuma commented Jul 18, 2011

In other words, the source code for the current project would not be included in the jar.

Spark (https://github.com/mesos/spark) overrides a bunch of methods in sbt-assembly for sbt 0.7.x in order to achieve this, but it's not as easy to do the same in sbt-assembly for sbt 0.10.x. In any case, it's useful because the dependencies don't change as often as the code for the project and time is saved building the deployment jars.

@eed3si9n eed3si9n reopened this Aug 1, 2011
@eed3si9n
Copy link
Member

eed3si9n commented Aug 1, 2011

Now you can either call

> assembly:package-dependency

or,

publishArtifact in (Assembly, packageScala) := false

publishArtifact in (Assembly, packageBin) := false

@ijuma
Copy link
Author

ijuma commented Aug 2, 2011

Very cool, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants