Skip to content

Instantly share code, notes, and snippets.

@jeremyheiler
Last active August 29, 2015 14:14
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 jeremyheiler/022e228eda315b45b88f to your computer and use it in GitHub Desktop.
Save jeremyheiler/022e228eda315b45b88f to your computer and use it in GitHub Desktop.
~:$ lein new app foo
Generating a project called foo based on the 'app' template.
~:$ cd foo
foo:$ tree
.
├── LICENSE
├── README.md
├── doc
│   └── intro.md
├── project.clj
├── resources
├── src
│   └── foo
│   └── core.clj
└── test
└── foo
└── core_test.clj
6 directories, 6 files
foo:$ lein uberjar
Compiling foo.core
Created /Users/jeremy/foo/target/uberjar+uberjar/foo-0.1.0-SNAPSHOT.jar
Created /Users/jeremy/foo/target/uberjar/foo-0.1.0-SNAPSHOT-standalone.jar
foo:$ java -jar target/uberjar/foo-0.1.0-SNAPSHOT-standalone.jar
Hello, World!
foo:$ boot -s src -- uber -- jar -m foo.core
Adding uberjar entries...
Writing project.jar...
foo:$ java -jar target/project.jar
Error: Could not find or load main class foo.core
foo:$ jar tf target/project.jar
META-INF/MANIFEST.MF
foo:$ boot -V
#https://github.com/boot-clj/boot
#Fri Jan 30 23:52:15 EST 2015
BOOT_CLOJURE_VERSION=1.6.0
BOOT_VERSION=2.0.0-rc8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment