Skip to content

Instantly share code, notes, and snippets.

@mikeholler
Created February 3, 2014 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeholler/8793724 to your computer and use it in GitHub Desktop.
Save mikeholler/8793724 to your computer and use it in GitHub Desktop.
Create "fat" jar containing dependencies.
jar {
// from http://fw-geekycoder.blogspot.com/2011/11/how-to-create-jar-with-dependencies-in.html
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
manifest { attributes 'Main-Class': 'test.Main' }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment