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

Possible to run multiple packaging tasks? #28

Closed
Sciss opened this issue Feb 26, 2012 · 1 comment
Closed

Possible to run multiple packaging tasks? #28

Sciss opened this issue Feb 26, 2012 · 1 comment

Comments

@Sciss
Copy link

Sciss commented Feb 26, 2012

Is it possible in a Build.scala to somehow invoke assembly multiple times?

I wish to generate platform specific jars, e.g. target/MyProject-Mac.jar, target/MyProject-Linux.jar, and target/MyProject-Windows.jar, each of which would require separate excludeFiles / excludeJars settings.

How would I do this?

@eed3si9n
Copy link
Member

I haven't tried it but this should work:

val Mac = config("mac") extend(Compile)
val Linux = config("linux") extend(Compile)
val Windows = config("windows") extend(Compile)

inConfig(Mac)(baseAssemblySettings ++ inTask(assembly)(Seq(
  excludedJars := Seq().classpath
))) ++
inConfig(Linux)(baseAssemblySettings ++ inTask(assembly)(Seq(
  excludedJars := Seq().classpath
))) ++
inConfig(Windows)(baseAssemblySettings ++ inTask(assembly)(Seq(
  excludedJars := Seq().classpath
)))

You can then run them as mac:assemby.

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